[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

R. David Murray report at bugs.python.org
Sat Jun 25 20:26:37 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

No, that's correct.  In python 2.x the 'bytes' stuff is just a portability aid.  In 2.x, bytes and string are the same type.  In Python 3 they aren't, so by using the 'fake' classes in python2 you can often make your code work correctly on both python2 and python3.

So, can this issue be closed, or do you think there is still might be a valid backward compatibility issue?

----------

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


More information about the Python-bugs-list mailing list