[ python-Feature Requests-1472176 ] "idna" encoding (drawing unicodedata) necessary in httplib?

SourceForge.net noreply at sourceforge.net
Wed May 3 20:03:41 CEST 2006


Feature Requests item #1472176, was opened at 2006-04-18 09:28
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1472176&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: kxroberto (kxroberto)
Assigned to: Nobody/Anonymous (nobody)
Summary: "idna" encoding (drawing unicodedata) necessary in httplib?

Initial Comment:
httplib employs the "idna" encoding. that leads to
errors in py2exe/cxfreeze. And if forced into the
installer, it draws the 400kB+ unicodedata.pyd (on Win)
in innocent small apps. Otherwise no normal technical
modules draw the unicodedata.

Is that really necessary?



----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-05-03 18:03

Message:
Logged In: YES 
user_id=849994

Slightly reformatted version of patch applied in rev. 45890.

----------------------------------------------------------------------

Comment By: kxroberto (kxroberto)
Date: 2006-04-19 09:41

Message:
Logged In: YES 
user_id=972995

a patch attached

----------------------------------------------------------------------

Comment By: M.-A. Lemburg (lemburg)
Date: 2006-04-18 09:59

Message:
Logged In: YES 
user_id=38388

I agree - in most cases, ASCII will be used for hostnames
(where the idna encoding is being used in httplib). 

A little helper function to first try .encode('ascii') and
then revert to .encode('idna') would do wonders.

Patches are welcome !

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1472176&group_id=5470


More information about the Python-bugs-list mailing list