[issue10783] struct.pack() and Unicode strings

Amaury Forgeot d'Arc report at bugs.python.org
Tue Dec 28 09:24:08 CET 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

But there are probably working usages with unicode strings out there. For example, I've seen code like struct.pack('<6sHHBBB', 'GIF87a', ...)
Do you suggest to make this 3.1 code stop working in 3.2?

In any case, the 'c' format should probably be changed as well.

----------

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


More information about the Python-bugs-list mailing list