Re: Printing UTF-8 mail to terminal

2024-10-31 Thread Left Right via Python-list
There's quite a lot of misuse of terminology around terminal / console / shell. Please, correct me if I'm wrong, but it looks like you are printing that on MS Windows, right? MS Windows doesn't have or use terminals (that's more of a Unix-related concept). And, by "terminal" I mean terminal emula

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-31 Thread Jon Ribbens via Python-list
On 2024-10-31, Loris Bennett wrote: > Jon Ribbens writes: >> On 2024-10-30, Loris Bennett wrote: >>> Jon Ribbens writes: On 2024-10-30, Loris Bennett wrote: > Jon Ribbens writes: >> As per the docs you link to, the read() method only takes filename(s) >> as arguments, if you

ANN: PyDDF Python Herbst Sprint 2024

2024-10-31 Thread eGenix Team via Python-list
/This announcement is in German since it targets a local user group//meeting in Düsseldorf, Germany/ Ankündigung Python Meeting Herbst Sprint 2024 in Düsseldorf Samstag, 09.11.2024, 10:00-

Printing UTF-8 mail to terminal

2024-10-31 Thread Loris Bennett via Python-list
Hi, I have a command-line program which creates an email containing German umlauts. On receiving the mail, my mail client displays the subject and body correctly: Subject: Übung Sehr geehrter Herr Dr. Bennett, Dies ist eine Übung. So far, so good. However, when I use the --verbose opti

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-31 Thread Karsten Hilbert via Python-list
Am Thu, Oct 31, 2024 at 07:47:17AM +0100 schrieb Loris Bennett via Python-list: > However I didn't make myself clear: I understand that there are > different functions, depending on whether I have a file name or a > stream. Nevertheless, I just can't think of a practical example where I > might j

Poetry: endpoints with endpoints

2024-10-31 Thread Loris Bennett via Python-list
Hi, I am using Poetry and have the following in my pyproj.toml [tool.poetry.scripts] frobnicate = "frobnicator.cli:frobnicate" The CLI provides an option '--flavour' and I would like to add further endpoints for specific values of 'flavour'. I tried adding frobnicate_foo = "frobnicator.

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-31 Thread Loris Bennett via Python-list
Jon Ribbens writes: > On 2024-10-30, Loris Bennett wrote: >> Jon Ribbens writes: >>> On 2024-10-30, Loris Bennett wrote: Jon Ribbens writes: > As per the docs you link to, the read() method only takes filename(s) > as arguments, if you have an already-open file you want to read t

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-31 Thread MRAB via Python-list
On 2024-10-31 06:47, Loris Bennett via Python-list wrote: Jon Ribbens writes: On 2024-10-30, Loris Bennett wrote: Jon Ribbens writes: On 2024-10-30, Loris Bennett wrote: Jon Ribbens writes: As per the docs you link to, the read() method only takes filename(s) as arguments, if you have

Re: Printing UTF-8 mail to terminal

2024-10-31 Thread Cameron Simpson via Python-list
On 31Oct2024 16:33, Loris Bennett wrote: I have a command-line program which creates an email containing German umlauts. On receiving the mail, my mail client displays the subject and body correctly: [...] So far, so good. However, when I use the --verbose option to print the mail to the ter

Re: Printing UTF-8 mail to terminal

2024-10-31 Thread Alan Gauld via Python-list
On 31/10/2024 20:50, Cameron Simpson via Python-list wrote: > That looks to me like quoted-printable. This is an encoding for binary > transport of text to make it robust against not 8-buit clean ... > If you're just dealing with this directly, use the `quopri` stdlib > module: https://docs.py

Correct module for site customization of path

2024-10-31 Thread Tim Johnson via Python-list
FYI: I am retired programmer using a recent upgrade to ubuntu 24.04 and python 3.12 My needs are that of a hobbyist at this time. I am on a single user home desktop with root privileges available. After the recent upgrades I had to install youtube_dl with pipx for the new python version. When