Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #264: Your modem doesn't speak English.


comp / comp.lang.python / Re: Printing UTF-8 mail to terminal

SubjectAuthor
o Re: Printing UTF-8 mail to terminalCameron Simpson

1
Subject: Re: Printing UTF-8 mail to terminal
From: Cameron Simpson
Newsgroups: comp.lang.python
Date: Fri, 1 Nov 2024 21:52 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: cs@cskk.id.au (Cameron Simpson)
Newsgroups: comp.lang.python
Subject: Re: Printing UTF-8 mail to terminal
Date: Sat, 2 Nov 2024 08:52:22 +1100
Lines: 12
Message-ID: <mailman.70.1730497948.4695.python-list@python.org>
References: <9f754662-4b73-4d3d-a9b8-ac0a40762143@yahoo.co.uk>
<ZyVNlhl5Ee6Iq1Xj@cskk.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
X-Trace: news.uni-berlin.de adL31PzTf9wEI8qZxkKAYQGe/ieSJV26ViTn8SOd4pbg==
Cancel-Lock: sha1:5Eaf+oXV9z/X8hulY0Ctm2DetdI= sha256:TmBlziq4yp5P/pQmUVJ8g0qP0mixEUwN4v/aLBRqkTo=
Return-Path: <cameron@cskk.id.au>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'despite': 0.05; 'string':
0.07; ':-)': 0.09; 'cc:addr:python-list': 0.09; 'module:': 0.09;
'skip:` 10': 0.09; 'cameron': 0.16; 'directly,': 0.16;
'executable': 0.16; 'from:addr:cs': 0.16; 'from:addr:cskk.id.au':
0.16; 'from:name:cameron simpson': 0.16; 'message-
id:@cskk.homeip.net': 0.16; 'received:13.237': 0.16;
'received:13.237.201': 0.16; 'received:13.237.201.189': 0.16;
'received:cskk.id.au': 0.16; 'received:id.au': 0.16;
'received:mail.cskk.id.au': 0.16; 'simpson': 0.16; 'stdlib': 0.16;
'wrote:': 0.16; 'python': 0.16; 'name.': 0.19;
'cc:addr:python.org': 0.20; "i've": 0.22; 'cc:2**1': 0.23; 'header
:User-Agent:1': 0.30; 'module': 0.31; 'python-list': 0.32; 'header
:In-Reply-To:1': 0.34; "didn't": 0.34; 'received:au': 0.35; 'url-
ip:151.101.0.223/32': 0.38; 'url-ip:151.101.128.223/32': 0.38;
'url-ip:151.101.192.223/32': 0.38; 'url-ip:151.101.64.223/32':
0.38; 'list': 0.39; 'use': 0.39; 'love': 0.62; 'mode': 0.62;
'received:13': 0.64; 'received:userid': 0.66; 'james': 0.68;
'little': 0.73; 'features': 0.75; 'discover': 0.80; 'caused':
0.86; 'subject:UTF': 0.91; 'subject:mail': 0.95
Mail-Followup-To: alan.gauld@yahoo.co.uk,
"python-list@python.org" <python-list@python.org>,
Alan Gauld <learn2program@gmail.com>
Content-Disposition: inline
In-Reply-To: <9f754662-4b73-4d3d-a9b8-ac0a40762143@yahoo.co.uk>
User-Agent: Mutt/2.2.13 (2024-03-09)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <ZyVNlhl5Ee6Iq1Xj@cskk.homeip.net>
X-Mailman-Original-References: <9f754662-4b73-4d3d-a9b8-ac0a40762143@yahoo.co.uk>
View all headers

On 31Oct2024 21:53, alan.gauld@yahoo.co.uk <alan.gauld@yahoo.co.uk> wrote:
>On 31/10/2024 20:50, Cameron Simpson via Python-list wrote:
>> If you're just dealing with this directly, use the `quopri` stdlib
>> module: https://docs.python.org/3/library/quopri.html
>
>One of the things I love about this list are these little features
>that I didn't know existed. Despite having used Python for over 25
>years, I've never noticed that module before! :-)

Heh. And James Parrott caused me to discover the
`subprocess.run(executable_path)` mode of `run()/Popen()`: a string with
`shell=False` (the default) is an executable name.

1

rocksolid light 0.9.8
clearnet tor