Amber Brown: Batteries Included, But They're Leaking

Christian Heimes christian at python.org
Sun May 19 17:34:30 EDT 2019


On 19/05/2019 22.48, Chris Angelico wrote:
>> the sslmodule requires a monkeypatch to connect to non-ASCII domain names,

It's not correct. There were some bugs in IDNA support in the SSL
module. Nathaniel and I worked on the topic and fixed it in 3.7, see
https://bugs.python.org/issue28414

Python stdlib in general does not support some non-ASCII domain names
(German, Greek, and some Asian languages), because there is no IDNA 2008
encoding in the stdlib. The problem is not in the SSL module, but starts
as low as host name encoding for DNS lookups. The solution here is to
*add* more features to the stdlib, see
https://bugs.python.org/issue17305


By the way, I'm working on removing some dead battieres since last year,
see proto PEP
https://github.com/tiran/peps/blob/oldbatteries/pep-9999.rst and LWN
article https://lwn.net/Articles/755229/

Christian




More information about the Python-list mailing list