[issue12966] cookielib.LWPCookieJar breaks on cookie values with a newline

Terry J. Reedy report at bugs.python.org
Mon Sep 26 22:40:13 CEST 2011


Terry J. Reedy <tjreedy at udel.edu> added the comment:

It would be better to raise an exception* upon receiving a cookie. On the other hand, I presume cookies are stored in files that any process can mess with, so reading failures are always a possibility. So if you want to catch a (very rare) failure, to do something useful, then you should do so.

*My preference versus silent rejection. But I do not do web programming.

Unless the current doc says something I missed, I think either change from the current 'store anything' policy would be a feature request. This is assuming that current behavior is unchanged from 2.5.

----------

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


More information about the Python-bugs-list mailing list