Re: [OT] Bit twiddling homework

2018-07-19 Thread Steven D'Aprano
On Fri, 20 Jul 2018 08:25:04 +0200, Brian Oney via Python-list wrote: > PS: Can I twiddle bits in Python? Yes. These operators work on ints: bitwise AND: & bitwise OR: | bitwise XOR: ^ -- Steven D'Aprano "Ever since I learned about confirmation bias, I've been seeing it everywhere

Re: [OT] Bit twiddling homework

2018-07-19 Thread Chris Angelico
On Fri, Jul 20, 2018 at 4:25 PM, Brian Oney via Python-list wrote: > PS: Can I twiddle bits in Python? You sure can! With most of the same operators that you would in C. The main difference is that Python's integers don't have word size limits; instead of working with, say, 32-bit integer, you j

[OT] Bit twiddling homework

2018-07-19 Thread Brian Oney via Python-list
Dear Python-List, an old dog wants to learn some new tricks. Due to my contact with microcontrollers, I am learning C/C++. I am aware that this is the endearing, helpful, yet chatty python-list. Many of you are competent C-programmers. The allure of C is that I can play directly with memory.

Getting installed version

2018-07-19 Thread Cecil Westerhof
I can get the installed version of a package with: pip2 show cryptography | awk '/^Version: / { print $2 }' But I was wondering if there is a better way. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof -- https://mail.python.org/mailman/listin

[RELEASED] Python 3.4.9rc1 and Python 3.5.6rc1 are now available

2018-07-19 Thread Larry Hastings
On behalf of the Python development community, I'm pleased to announce the availability of Python 3.4.9rc1 and Python 3.5.6rc1. Both Python 3.4 and 3.5 are in "security fixes only" mode.  Both versions only accept security fixes, not conventional bug fixes, and both releases are source-only.

Re: copy and paste with a program called clipboard

2018-07-19 Thread eryk sun
On Thu, Jul 19, 2018 at 5:42 PM, Terry Reedy wrote: > > What happens when you right click depends on the program you are interacting > with. When you select and right-click in the current Windows 10 console, > used for Command Prompt, PowerShell, Python, and other programs, the > selection disapp

Re: copy and paste with a program called clipboard

2018-07-19 Thread no
On Thu, 19 Jul 2018 23:35:05 +, eryk sun wrote: >On Thu, Jul 19, 2018 at 6:49 PM, wrote: >> On Thu, 19 Jul 2018 17:35:24 +0100, MRAB >> wrote: >> >>>I'm assuming you're using Windows. >>> >>>It might be that the console window's properties need changing: >>> >>>1. Right-click on the title

Re: copy and paste with a program called clipboard

2018-07-19 Thread eryk sun
On Thu, Jul 19, 2018 at 6:49 PM, wrote: > On Thu, 19 Jul 2018 17:35:24 +0100, MRAB > wrote: > >>I'm assuming you're using Windows. >> >>It might be that the console window's properties need changing: >> >>1. Right-click on the title bar. >> >>2. Click on Properties. >> >>3. In the Options tab, t

Re: Glyphs and graphemes [was Re: Cult-like behaviour]

2018-07-19 Thread Steven D'Aprano
On Thu, 19 Jul 2018 20:34:26 +0200, Christian Gollwitzer wrote: > Am 19.07.2018 um 14:50 schrieb Gregory Ewing: >> Chris Angelico wrote: >>> On Thu, Jul 19, 2018 at 4:41 PM, Gregory Ewing >>> wrote: >>> (Google doesn't seem to think so -- it asks me whether I meant "assist shop". Althou

Re: send PIL.Image to django server side and get it back

2018-07-19 Thread José María Mateos
On Mon, Jul 16, 2018 at 06:40:45AM -0700, Christos Georgiou - ΤΖΩΤΖΙΟΥ wrote: > You need first to serialize the object to bytes that can go over the > wire. There is no predefined way to do that, so you can: > > >>> import io > >>> file_like_object = io.BytesIO() > >>> PILImage.save(file_like_obj

Re: CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM

2018-07-19 Thread Mark Lawrence
On 19/07/18 22:47, no@none.invalid wrote: Gee. If those spams keep up, you would think that someone might try to turn the tables on the spammer. They come from google groups. Google has no intention of doing anything about it. I avoid seeing any of them by subscribing to this forum via g

Re: Edit with IDLE pull down menu

2018-07-19 Thread no
On Thu, 19 Jul 2018 18:25:41 -0400, Dennis Lee Bieber wrote: >On Thu, 19 Jul 2018 17:40:16 -0400, no@none.invalid declaimed the >following: > >> >>So to run a .py program, you have to right click and select the pull >>down menu Edit with IDLE and then inside that menu you pick Edit with >>IDLE.

CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM

2018-07-19 Thread no
Gee. If those spams keep up, you would think that someone might try to turn the tables on the spammer. -- https://mail.python.org/mailman/listinfo/python-list

Re: Edit with IDLE pull down menu

2018-07-19 Thread no
On Thu, 19 Jul 2018 14:00:39 -0700 (PDT), Rick Johnson wrote: >n...@none.invalid wrote: >> Rick Johnson wrote: >> >n...@none.invalid wrote: >> > > >> > > Edit with IDLE pull down menu has one item. Why would you >> > > have nested menu with only one choice? >> > >> > Oh, i dunno, i'm just riffing

Re: Edit with IDLE pull down menu

2018-07-19 Thread no
On Thu, 19 Jul 2018 13:15:23 -0700 (PDT), Rick Johnson wrote: >n...@none.invalid wrote: >> Edit with IDLE pull down menu has one item. >> Why would you have nested menu with only one choice? > >Oh, i dunno, i'm just riffing here, but... perhaps because the menu's >_contents_ depend on _context_?

Edit with IDLE pull down menu

2018-07-19 Thread no
Edit with IDLE pull down menu has one item. Why would you have nested menu with only one choice? -- https://mail.python.org/mailman/listinfo/python-list

Re: copy and paste with a program called clipboard

2018-07-19 Thread no
On Thu, 19 Jul 2018 17:35:24 +0100, MRAB wrote: >On 2018-07-19 16:47, no@none.invalid wrote: >> I just installed Python 3.7 >> The instructions say to highlight some text and press enter to copy >> text. >> You are supposed to just right click with the mouse to paste text. >> >> I use a very use

Re: Glyphs and graphemes [was Re: Cult-like behaviour]

2018-07-19 Thread Christian Gollwitzer
Am 19.07.2018 um 14:50 schrieb Gregory Ewing: Chris Angelico wrote: On Thu, Jul 19, 2018 at 4:41 PM, Gregory Ewing wrote: (Google doesn't seem to think so -- it asks me whether I meant "assist shop". Although it does offer to translateč it into Czech...) Into or from?? I'm thoroughly confus

Re: copy and paste with a program called clipboard

2018-07-19 Thread Terry Reedy
On 7/19/2018 11:47 AM, no@none.invalid wrote: I just installed Python 3.7 What machine (OS)? How did you install Python? How are you running it? The instructions say to highlight some text and press enter to copy text. What instructions? This is not standard, at least not on Windows. You

Re: copy and paste with a program called clipboard

2018-07-19 Thread MRAB
On 2018-07-19 16:47, no@none.invalid wrote: I just installed Python 3.7 The instructions say to highlight some text and press enter to copy text. You are supposed to just right click with the mouse to paste text. I use a very useful program called Clipmate that captures from the clipboard and ke

Re: PyDocs Arabic Translation Started and Call to Interested Parties viz en-ar Speakers

2018-07-19 Thread Mark Lawrence
On 19/07/18 16:06, Guido van Rossum wrote: Thank you for taking the lead and good luck with the project! Pleased to see that haven't completely disappeared :) On Wed, Jul 18, 2018 at 11:57 PM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: Greetings everybody, i take this opportun

copy and paste with a program called clipboard

2018-07-19 Thread no
I just installed Python 3.7 The instructions say to highlight some text and press enter to copy text. You are supposed to just right click with the mouse to paste text. I use a very useful program called Clipmate that captures from the clipboard and keeps a list of clipboard captures and I can men

Re: PyDocs Arabic Translation Started and Call to Interested Parties viz en-ar Speakers

2018-07-19 Thread Guido van Rossum
Thank you for taking the lead and good luck with the project! On Wed, Jul 18, 2018 at 11:57 PM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Greetings everybody, > > i take this opportunity to announce to the python community that Arabic > translations for the docs have started at > >

EuroPython 2018: Day passes now also valid for Sprints Weekend

2018-07-19 Thread M.-A. Lemburg
Due to popular demand, we are making it possible to attend the Sprints Weekend (July 28-29), even if you only have a day pass or are considering to buy one and not a regular conference tickets which includes the sprints as well. * EuroPython 2018 Sprints (Hackathons) * h

Re: Glyphs and graphemes [was Re: Cult-like behaviour]

2018-07-19 Thread Gregory Ewing
Chris Angelico wrote: On Thu, Jul 19, 2018 at 4:41 PM, Gregory Ewing wrote: (Google doesn't seem to think so -- it asks me whether I meant "assist shop". Although it does offer to translate it into Czech...) Into or from?? I'm thoroughly confused now! Hard to tell. This is what the link sa

Re: Glyphs and graphemes [was Re: Cult-like behaviour]

2018-07-19 Thread Abdur-Rahmaan Janhangeer
it's also thoroughly time to give this thread a well deserved rest RIP Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Into or from?? I'm thoroughly confused now! > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/pyth

PyDocs Arabic Translation Started and Call to Interested Parties viz en-ar Speakers

2018-07-19 Thread Abdur-Rahmaan Janhangeer
Greetings everybody, i take this opportunity to announce to the python community that Arabic translations for the docs have started at https://github.com/Abdur-rahmaanJ/py-docs-ar as per the PEP written by @JulienPalard and @Mariatta, we are working on the tutorials (for 3.7). you can view detai