[issue10783] struct.pack() and Unicode strings

Georg Brandl report at bugs.python.org
Tue Dec 28 11:25:48 CET 2010


Georg Brandl <georg at python.org> added the comment:

I agree this automatic conversion is broken and should be fixed.  Not sure if emitting a DeprecationWarning now and fixing it 18 months later is the right thing, especially since DeprecationWarnings are now silent.
As Victor says, the incompatibility is explicit, and the fix is simple and fully backwards compatible, while the current behavior will cause nasty intermittent surprises.

----------
nosy: +georg.brandl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10783>
_______________________________________


More information about the Python-bugs-list mailing list