[issue11315] Fix/add unicode support in Cookie module?

Éric Araujo report at bugs.python.org
Fri Feb 25 23:43:51 CET 2011


Éric Araujo <merwok at netwok.org> added the comment:

Thanks for the report and patch.  This is not as easy as it sounds: The doc ambiguously uses “string”; the code clearly wants only byte strings (str); in the 3.x version, only character strings (unicode) are accepted; “raw” would suggest to me than only bytes make sense.

I would tend to edit the documentation but no the behavior, given that 2.7 is stable and this behavior has been present and documented for a long time.  Senthil, what’s your opinion?

----------
nosy: +eric.araujo
title: Cookie.py breaks when passed unicode, fix included -> Fix/add unicode support in Cookie module?
versions: +Python 2.7 -Python 2.6

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


More information about the Python-bugs-list mailing list