Re: pyinstaller wrong classified as Windows virus

2021-11-28 Thread anthony.flury via Python-list
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 'compile' the code to the executable that

Re: pyinstaller wrong classified as Windows virus

2021-11-28 Thread anthony.flury via Python-list
Have you tried using Nuitka - rather than pyInstalller - it means you distribute a single executable and the Python run time library (which they probably have already), and it has the advantage that it is a bit quicker than standard python. Rather than bundle the source code and interpreter in

Re: pyinstaller wrong classified as Windows virus

2021-11-28 Thread Tony Flury via Python-list
Have you tried using Nuitka - rather than pyInstalller - it means you distribute a single executable and the Python run time library (which they probably have already), and it has the advantage that it is a bit quicker than standard python. Rather than bundle the source code and interpreter in

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

2021-11-28 Thread Cameron Simpson
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 "Z" >> are shown with dotted-outlines. Similarly, th

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

2021-11-28 Thread Chris Angelico
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 "Z" > are shown with dotted-outlines. Similarly, the Mauritius' flag is shown > as "M" and "U". > >

Re: Why is there no get_body() in mailbox.Maildir?

2021-11-28 Thread Chris Green
Stefan Ram wrote: > Chris Green writes: > >I thought MaildirMessage inherited from email.message, > > It inherits from mailbox.Message which inherits from > email.message.Message which has no "get_body" method. > So the documentation at:- https://docs.python.org/3/library/email.message

Re: How to decode ISO8859-1 in Python 3?

2021-11-28 Thread Chris Green
Stefan Ram wrote: > Chris Green writes: > >I have some text files which are ISO8859-1 encoded and I want to output > >them to screen using Python. > > Well, the first attempt would be: > > import pathlib > name = r"C:\example.txt" > encoding = r"iso8859-1" > path = pathlib.Path( name ) > with

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

2021-11-28 Thread dn via Python-list
On 29/11/2021 02.18, Chris Angelico wrote: > On Mon, Nov 29, 2021 at 12:10 AM Abdur-Rahmaan Janhangeer > wrote: > > Flags are actually constructed from multiple codepoints. What you want > is to insert each codepoint separately. You can see them listed in the > second column of the table you link

How to decode ISO8859-1 in Python 3?

2021-11-28 Thread Chris Green
This sounds as if it should be trivial but searching only seems to produce ways ofd doing it in Python 2. I have some text files which are ISO8859-1 encoded and I want to output them to screen using Python. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

Re: CERTIFICATE_VERIFY_FAILED Windows only?

2021-11-28 Thread Ulli Horlacher
Chris Angelico wrote: > On Sun, Nov 28, 2021 at 6:38 AM Ulli Horlacher > wrote: > > > > My program uses https and runs fine on Linux, but on Windows it crashes: > > > > Google chrome and firefox both say the certifacte is valid: > > > > https://fex.flupp.org/fop/U4xC4kz8/X-20211127192031.png > >

Why is there no get_body() in mailbox.Maildir?

2021-11-28 Thread Chris Green
I have the following error:- chris@esprimo$ ./showmail.py boating/Odin/moorings/angers "01 Oct 2009 18:03:00" Traceback (most recent call last): File "/home/chris/dev/cgi-bin/./showmail.py", line 24, in print(msg.get_body('plain',)) AttributeError: 'MaildirMessage' obje

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

2021-11-28 Thread Abdur-Rahmaan Janhangeer
Greetings, But why is it so? -- https://mail.python.org/mailman/listinfo/python-list

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

2021-11-28 Thread Chris Angelico
On Mon, Nov 29, 2021 at 12:29 AM Abdur-Rahmaan Janhangeer wrote: > > Greetings, > > I get you but why do the short names work for some and not for > others? > Which ones work? The ones that can be identified by a single codepoint? Look at the specification for Python's \N escapes. ChrisA -- htt

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

2021-11-28 Thread Abdur-Rahmaan Janhangeer
Greetings, I get you but why do the short names work for some and not for others? Kind Regards, Abdur-Rahmaan Janhangeer about | blog github Mauritius -- https://mail.python.org/mailman/list

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

2021-11-28 Thread Chris Angelico
On Mon, Nov 29, 2021 at 12:10 AM Abdur-Rahmaan Janhangeer wrote: > I found the whole CLDR short name here: > https://unicode.org/emoji/charts/full-emoji-list.html > > However when i do > > >>> print('\N{flag: Mauritius}') > File "", line 1 > print('\N{flag: Mauritius}') >

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

2021-11-28 Thread Abdur-Rahmaan Janhangeer
Mike Driscoll printed this on Twitter >>> print('\N{Sauropod}') 🦕 Using py3.9 i got the above. I found the whole CLDR short name here: https://unicode.org/emoji/charts/full-emoji-list.html However when i do >>> print('\N{flag: Mauritius}') File "", line 1 print('\N{flag: Mauritius}')