A decade or so of Python programming, and I've never thought to "for-elif"

2021-11-29 Thread Chris Angelico
for ns in namespaces: if name in ns: print("Found!") break elif name.isupper(): print("All-caps name that wasn't found") This actually doesn't work. I have been programming in Python for well over a decade, and never before been in a situation where this would be useful. A

Re: frozenset can be altered by |=

2021-11-29 Thread Chris Angelico
On Tue, Nov 30, 2021 at 12:41 PM Richard Damon wrote: > > On 11/29/21 5:01 PM, Chris Angelico wrote: > > On Tue, Nov 30, 2021 at 8:55 AM Marco Sulla > > wrote: > >> I must say that I'm reading the documentation now, and it's a bit > >> confusing. In the docs, inplace operators as |= should not wo

Re: frozenset can be altered by |=

2021-11-29 Thread Richard Damon
On 11/29/21 5:01 PM, Chris Angelico wrote: On Tue, Nov 30, 2021 at 8:55 AM Marco Sulla wrote: I must say that I'm reading the documentation now, and it's a bit confusing. In the docs, inplace operators as |= should not work. They are listed under the set-only functions and operators. But, as we

Re: print('\N{flag: Mauritius}') not supported in py3.9

2021-11-29 Thread Cameron Simpson
On 30Nov2021 10:59, DL Neil wrote: >Fedora names it as rxvt-unicode. >Installed v9.26 >Text is too small for these old eyes. Fair enough. There are resources, but not worth it unless you really want the app. >No menu bar and no context menus. Um, yes. The (hardware, serial) terminals we had a

Re: Python child process in while True loop blocks parent

2021-11-29 Thread Jen Kris via Python-list
Thanks to you and Cameron for your replies.  The C side has an epoll_ctl set, but no event loop to handle it yet.  I'm putting that in now with a pipe write in Python-- as Cameron pointed out that is the likely source of blocking on C.  The pipes are opened as rdwr in Python because that's nonbl

Re: Python child process in while True loop blocks parent

2021-11-29 Thread Barry
> On 29 Nov 2021, at 20:36, Jen Kris via Python-list > wrote: > > I have a C program that forks to create a child process and uses execv to > call a Python program. The Python program communicates with the parent > process (in C) through a FIFO pipe monitored with epoll(). > > The Pytho

Re: Python child process in while True loop blocks parent

2021-11-29 Thread Barry
> On 29 Nov 2021, at 20:36, Jen Kris via Python-list > wrote: > > I have a C program that forks to create a child process and uses execv to > call a Python program. The Python program communicates with the parent > process (in C) through a FIFO pipe monitored with epoll(). > > The Pytho

Re: frozenset can be altered by |=

2021-11-29 Thread Chris Angelico
On Tue, Nov 30, 2021 at 8:55 AM Marco Sulla wrote: > > I must say that I'm reading the documentation now, and it's a bit > confusing. In the docs, inplace operators as |= should not work. They > are listed under the set-only functions and operators. But, as we saw, > this is not completely true: t

Re: print('\N{flag: Mauritius}') not supported in py3.9

2021-11-29 Thread dn via Python-list
On 30/11/2021 10.19, Cameron Simpson wrote: > On 29Nov2021 22:25, DL Neil wrote: Probably a font issue. Not many fonts support the flags. >>> >>> Agree about the font support. Some terminal emulators make an effort to >>> have fallback fonts for when your preferred font lacks a glyph. IIRC >>

Re: frozenset can be altered by |=

2021-11-29 Thread Marco Sulla
I must say that I'm reading the documentation now, and it's a bit confusing. In the docs, inplace operators as |= should not work. They are listed under the set-only functions and operators. But, as we saw, this is not completely true: they work but they don't mutate the original object. The same f

Re: print('\N{flag: Mauritius}') not supported in py3.9

2021-11-29 Thread Cameron Simpson
On 29Nov2021 22:25, DL Neil wrote: >>> Probably a font issue. Not many fonts support the flags. >> >> Agree about the font support. Some terminal emulators make an effort to >> have fallback fonts for when your preferred font lacks a glyph. IIRC >> urxvt is such a terminal on Linux. > >Not sure ab

Re: Python child process in while True loop blocks parent

2021-11-29 Thread Cameron Simpson
On 29Nov2021 21:34, Jen Kris wrote: >I have a C program that forks to create a child process and uses execv to call >a Python program.  The Python program communicates with the parent process (in >C) through a FIFO pipe monitored with epoll().  > >The Python child process is in a while True loop

Python child process in while True loop blocks parent

2021-11-29 Thread Jen Kris via Python-list
I have a C program that forks to create a child process and uses execv to call a Python program.  The Python program communicates with the parent process (in C) through a FIFO pipe monitored with epoll().  The Python child process is in a while True loop, which is intended to keep it running w

Re: Negative subscripts

2021-11-29 Thread Chris Angelico
On Tue, Nov 30, 2021 at 6:45 AM dn via Python-list wrote: > > > > On 27/11/2021 21.23, Chris Angelico wrote: > > On Sat, Nov 27, 2021 at 7:21 PM dn via Python-list > > wrote: > >> The expression list is evaluated once; it should yield an iterable > >> object. An iterator is created for the result

Re: Negative subscripts

2021-11-29 Thread dn via Python-list
On 27/11/2021 21.23, Chris Angelico wrote: > On Sat, Nov 27, 2021 at 7:21 PM dn via Python-list > wrote: >> The expression list is evaluated once; it should yield an iterable >> object. An iterator is created for the result of the expression_list. >> The suite is then executed once for each item

Re: pyinstaller wrong classified as Windows virus

2021-11-29 Thread Benjamin Schollnick
>> Windows Defender has a setting to also use “Reputation Scoring”. >> What that simply means is that WDef will report back a hash to microsoft >> which is then checked to see if it is known. If it is known, then it has a >> reputation and based off that reputation Defender will either allow it

Re: pyinstaller wrong classified as Windows virus

2021-11-29 Thread Mats Wichmann
On 11/29/21 12:04, Benjamin Schollnick wrote: Windows Defender has a setting to also use “Reputation Scoring”. What that simply means is that WDef will report back a hash to microsoft which is then checked to see if it is known. If it is known, then it has a reputation and based off that repu

Re: Failure to Display Top menu

2021-11-29 Thread Calvin Spealman
This mailing list does not allow attachments. If you're trying to share a screenshot, post it to imgur or something like that and share a URL here. On Mon, Nov 29, 2021 at 2:12 PM Peter Mwale wrote: > Hello Christian, > Am referring to menu marked in picture below. It's not coming on my window.

Re: Failure to Display Top menu

2021-11-29 Thread dn via Python-list
On 30/11/2021 07.43, Peter Mwale wrote: > Hello Christian, > Am referring to menu marked in picture below. It's not coming on my window. > > > On Sat, Nov 27, 2021, 20:19 Christian Gollwitzer wrote: > >> Am 26.11.21 um 21:38 schrieb Peter Mwale: >>> Hello, my python 3.10 shell is not displaying

Re: Failure to Display Top menu

2021-11-29 Thread Peter Mwale
Hello Christian, Am referring to menu marked in picture below. It's not coming on my window. On Sat, Nov 27, 2021, 20:19 Christian Gollwitzer wrote: > Am 26.11.21 um 21:38 schrieb Peter Mwale: > > Hello, my python 3.10 shell is not displaying the top menu. What should I > > do? > > > > You shou

Re: pyinstaller wrong classified as Windows virus

2021-11-29 Thread Benjamin Schollnick
Windows Defender has a setting to also use “Reputation Scoring”. What that simply means is that WDef will report back a hash to microsoft which is then checked to see if it is known. If it is known, then it has a reputation and based off that reputation Defender will either allow it to run or

Re: pyinstaller wrong classified as Windows virus

2021-11-29 Thread Barry
> On 29 Nov 2021, at 00:03, anthony.flury via Python-list > wrote: > >  > On 26/11/2021 07:13, Ulli Horlacher wrote >>> But consider another possibility that your compiler software is compromised >> Then https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe >> is infected. I doubt

Re: pyinstaller wrong classified as Windows virus

2021-11-29 Thread Ulli Horlacher
anthony.flury wrote: > > On 26/11/2021 07:13, Ulli Horlacher wrote > >> But consider another possibility that your compiler software is compromised > > Then https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe > > is infected. I doubt this. > > But you aren't using python3.10 to 'com

Re: print('\N{flag: Mauritius}') not supported in py3.9

2021-11-29 Thread dn via Python-list
On 29/11/2021 12.06, Cameron Simpson wrote: > On 29Nov2021 09:19, Chris Angelico wrote: >> On Mon, Nov 29, 2021 at 8:10 AM dn via Python-list >> wrote: >>> However, when trying the above, with our local flag in (Fedora Linux, >>> Gnome) Terminal or PyCharm's Run terminal; the two letters "N" and