[issue2980] Pickle stream for unicode object may contain non-ASCII characters.

Marc-Andre Lemburg report at bugs.python.org
Mon Jun 2 10:40:53 CEST 2008


Marc-Andre Lemburg <mal at egenix.com> added the comment:

We could add an extra step to also escape range(128, 256) code points,
but I don't think it's worth the performance loss this would cause.

Note that this was the first time anyone has ever noticed the fact that
the pickle protocol 0 is not pure ASCII - in 8 years. I think it's
better to just adapt the documentation and remove the "ASCII". The
important feature of protocol 0 is being human readable (to some
extent), not that it's pure ASCII.

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


More information about the Python-bugs-list mailing list