[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-02-22 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
type: behavior - enhancement
versions: +Python 3.4 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-09-30 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de 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 name.

So I propose these changes:

- remove support for bytes in codec, but only so for 3.3 (it's actually no 
change in behavior, since it will continue to raise TypeErrors)
- add a function decode_idna to the module, for users that wish to un-IDNA 
string objects.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-09-30 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-09-30 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

+1.  decode_idna is likely to be useful to the email package.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-09-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-07-19 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-12-30 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr 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 ;)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-12-29 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net 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)
 32301 loewis else:
 32301 loewis # Must be ASCII string
 32301 loewis unicode(input, ascii)
 32301 loewis labels = input.split(.)

but the py3k port, r55215, was clearly incomplete and the log message is 
explicit about it:


r55215 | guido.van.rossum | 2007-05-09 19:40:37 -0400 (Wed, 09 May 2007) | 3 
lines

Random modifications that slightly improve the chances of this not blowing up.
Walter will fix it for real.

I hope I picked the right Walter for the nosy list.

--
nosy: +belopolsky, doerwalter

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-12-29 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net 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 behavior would be.  In any case, supporting this would be a 
feature and it's acceptance would depend on the outcome of #7475.

--
dependencies: +codecs missing: base64 bz2 hex zlib hex_codec ...
versions: +Python 3.3 -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
priority:  - normal
stage:  - test needed
versions: +Python 3.1 -Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com