Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jon Ribbens Newsgroups: comp.lang.python Subject: Re: Printing UTF-8 mail to terminal Date: Fri, 1 Nov 2024 21:05:54 -0000 (UTC) Organization: A noiseless patient Spider Lines: 28 Message-ID: References: <9f754662-4b73-4d3d-a9b8-ac0a40762143@yahoo.co.uk> Injection-Date: Fri, 01 Nov 2024 22:05:54 +0100 (CET) Injection-Info: dont-email.me; posting-host="f219f957c518411a94a2206478f632cb"; logging-data="3569279"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aWNBhQehQn6IuVjZzQv0xWIaXmJ4yDpQ=" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:l55uhEQHEFBaSNrZ6QbqF36kNUE= Bytes: 2395 On 2024-11-01, Eli the Bearded <*@eli.users.panix.com> wrote: > In comp.lang.python, Gilmeh Serda wrote: >> Python 3.12.6 (main, Sep 8 2024, 13:18:56) [GCC 14.2.1 20240805] on linux >> Type "help", "copyright", "credits" or "license" for more information. >> >>> help('modules') >> >> Please wait a moment while I gather a list of all available modules... >> >> AssemblyApp apparmor io pyzipper >> AssemblyGui appdirs ipaddress qrtools >> CAMSimulator application_utility isodate queue >> Cheetah apprise isort quopri >> [...] >> """ >> >> Put it in a list, unmangle it, sort it and you should have an alphabetical >> list of all modules on your system. > > As someone who has done a lot of work with email in other languages, > "quopri" is not a name I'd expect or look for first pass for dealing > with MIME quoted-printable encoding. (Me, being me, I'd probably just > write it for myself if I didn't quickly find it while working with > email.) Python went through a period of time where lots of things just got stuck in the standard library without any particula taxonomy. Hence ending up with base64, binascii, binhex, quopri, and uu all being separate top-level modules, only some of which got tidied up in Python 3.