Re: Decoding of EmailMessage text

2021-08-23 Thread jak
Il 23/08/2021 13:12, Loris Bennett ha scritto: Jon Ribbens writes: On 2021-08-23, Loris Bennett wrote: If instead of mail.set_content(body) I do mail.set_content(body, cte="quoted-printable") Try print(mail.get_content()) rather than print(mail.as_string()) That did the trick -

Re: PyQt5 is not recognized from python 3.8 installation in python 3.10

2021-08-23 Thread Barry
> On 23 Aug 2021, at 00:00, Mats Wichmann wrote: > > On 8/22/21 7:04 AM, Mohsen Owzar wrote: >> Hi guys, >> I have on my laptop the python installation 3.8 and newly I installed newest >> version 3.10 as well on my laptop. >> Now I have two IDLEs for both of the installations. >> When I rund

Re: Making command-line args available to deeply-nested functions

2021-08-23 Thread George Fischhof
Loris Bennett ezt írta (időpont: 2021. aug. 23., H 19:26): > George Fischhof writes: > > > Loris Bennett ezt írta (időpont: 2021. aug. > > 20., P 17:54): > > > >> Julio Di Egidio writes: > >> > >> > On Friday, 20 August 2021 at 11:54:00 UTC+2, Loris Bennett wrote: > >> >> Hi, > >> >> > >> >> T

Re: on perhaps unloading modules?

2021-08-23 Thread Dennis Lee Bieber
On Sun, 22 Aug 2021 16:28:12 -0300, Hope Rouselle declaimed the following: >That's wild. :-) Was this created by Brian Kernighan? It's hard to >believe. Oh, I think he wrote AMPL, wasn't it? A Mathematical >Programming Language, or something like that. Kenneth Iverson, early 1960s fo

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-08-23 Thread Mostowski Collapse
The world is getting ridiculous. termux seems to not anymore be supported by Google Play because of some Android 10 issues? On the other hand there is this gem: TI 84 Plus CE Python Edition Unboxing https://www.youtube.com/watch?v=LVxP_Fki8Fc LoL Mostowski Collapse schrieb: Yesterday we went

Why Pyto package not available yet ???

2021-08-23 Thread Steeve Kerou via Python-list
Hi,  Here is Pyto, the first animated character that help you Learn Python like you play video games Why not implement me on Python PyPI ??? Episode 1: Intro / Who is Pyto ? / The Idle World | Pytorial | | | | | | | | | | | Episode 1: Intro / Who is Pyto ? / The Idle World

Re: Decoding of EmailMessage text

2021-08-23 Thread Loris Bennett
Jon Ribbens writes: > On 2021-08-23, Loris Bennett wrote: >> If instead of >> >> mail.set_content(body) >> >> I do >> >> mail.set_content(body, cte="quoted-printable") > > Try print(mail.get_content()) rather than print(mail.as_string()) That did the trick - thanks! Cheers, Loris -- T

Re: Decoding of EmailMessage text

2021-08-23 Thread Loris Bennett
"Loris Bennett" writes: > Hi, > > I have written a command-line program to send email using > > from email.message import EmailMessage > > which has an option '--verbose' which prints the email via > > if args.verbose: > print(f"{mail.as_string()}") > > If I run this with > > $

Re: Decoding of EmailMessage text

2021-08-23 Thread Jon Ribbens via Python-list
On 2021-08-23, Loris Bennett wrote: > If instead of > > mail.set_content(body) > > I do > > mail.set_content(body, cte="quoted-printable") Try print(mail.get_content()) rather than print(mail.as_string()) -- https://mail.python.org/mailman/listinfo/python-list

Decoding of EmailMessage text

2021-08-23 Thread Loris Bennett
Hi, I have written a command-line program to send email using from email.message import EmailMessage which has an option '--verbose' which prints the email via if args.verbose: print(f"{mail.as_string()}") If I run this with $ poetry run send_email loris -l en -s "Another t

Re: on perhaps unloading modules?

2021-08-23 Thread Hope Rouselle
Dennis Lee Bieber writes: > On Sat, 21 Aug 2021 17:15:14 -0300, Hope Rouselle > declaimed the following: > >>write some PHP precisely because it looked so much more cryptic than >>Allaire ColdFusion. Then C looked even more cryptic, so I fell in love >>with C. >> > Try APL then... Lol.

Re: Making command-line args available to deeply-nested functions

2021-08-23 Thread Loris Bennett
George Fischhof writes: > Loris Bennett ezt írta (időpont: 2021. aug. > 20., P 17:54): > >> Julio Di Egidio writes: >> >> > On Friday, 20 August 2021 at 11:54:00 UTC+2, Loris Bennett wrote: >> >> Hi, >> >> >> >> TL;DR: >> >> >> >> If I have a command-line argument for a program, what is the bes