classification
Title: unicode DNS names in urllib, urlopen
Type: enhancement Stage:
Components: Library (Lib), Unicode Versions: Python 3.2
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: baikie, flox, gdamjan, haypo, loewis, ncoghlan, orsenthil, r.david.murray
Priority: normal Keywords:

Created on 2010-08-25 07:39 by loewis, last changed 2010-08-25 13:09 by r.david.murray.

Messages (3)
msg114884 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-08-25 07:39
Copy of issue 1027206; support in the socket module was provided, but this request remains:

Also other modules should support unicode hostnames.
(httplib already does) but urllib and urllib2 don't.
msg114886 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-08-25 07:47
From msg60564: it's not clear to me what this request really means. It could mean that Python should support IRIs, but then, I'm not sure whether this support can be in urllib, or whether a separate library would be needed.
msg114899 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-08-25 13:08
There was a discussion about IRI on python-dev in the middle of a discussion about adding a coercable bytes type, but I can't find it. I believe the conclusion was that the best solution for IRI support was a new library that implements the full IRI spec.  It is possible that we could just add IDNA support to urllib, but it isn't clear that that work would be worth it when what is really needed is full IRI support.

See also issue1500504, though my guess based on the python-dev discussion and my experience with email is that an IRI library will need to be carefully designed with the py3k bytes/string separation in mind.
History
Date User Action Args
2010-08-25 13:09:05r.david.murraysetkeywords: - patch, buildbot
2010-08-25 13:08:40r.david.murraysetnosy: + r.david.murray, ncoghlan

messages: + msg114899
stage: patch review ->
2010-08-25 07:47:53loewissetmessages: + msg114886
2010-08-25 07:44:42loewislinkissue1027206 superseder
2010-08-25 07:39:27loewiscreate