[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2021-11-24 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: behavior -> enhancement versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-lis

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2011-09-30 Thread R. David Murray
R. David Murray added the comment: +1. decode_idna is likely to be useful to the email package. -- ___ Python tracker ___ ___ Python-

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2011-09-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2011-09-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree that the codec shouldn't "decode" unicode strings. However, the operation performed is still meaningful: users may type ACE (ascii-compatibly-encoded) DNS names into a user interface, and the application may then represent this as a "proper" Unicode

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2011-09-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2011-07-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2010-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Arguably, it is not a bug if codec's decode method rejects unicode > strings with a TypeError. Agreed, but it would be better if it did so deliberately and explicitly, rather than as a result of a bogus forward-port ;) -- __

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2010-12-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Arguably, it is not a bug if codec's decode method rejects unicode strings with a TypeError. The 2.x implementation seems to allow decoding of ASCII-only unicode labels joined by arbitrary RFC 3490 separators. I am not sure what the use case for this

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2010-12-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Martin's original code (r32301) was pretty clear: 32301 loewis # IDNA allows decoding to operate on Unicode strings, too. 32301 loewis if isinstance(input, unicode): 32301 loewis labels = dots.split(input) 3230

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2009-05-16 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: -> normal stage: -> test needed versions: +Python 3.1 -Python 3.0 ___ Python tracker ___ ___ P

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2008-07-03 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Martin, you seem to be the author of that module. -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2008-06-28 Thread Antoine Pitrou
New submission from Antoine Pitrou <[EMAIL PROTECTED]>: Lib/encodings/idna.py claims to do the following when `input` is a string object (lines 183-184, and see comment line 178: "IDNA allows decoding to operate on Unicode strings, too"): # Force to bytes input = bytes(in