SilentGhost added the comment:
On python2 you should be able to use Cookie module to parse cookies, rather
than doing that manually. Commas are handled correctly there. On python3 the
same functionality can be found in http.cookies.
The SimpleCookie.load could be used directly to have the header parsed.
I cannot say much about requests's choices or decisions, but if you think their
behaviour is not correct I can only point you to their bug tracker.
All the behaviour of the stdlib modules seem correct to me, so I'm going to
close this issue.
resolution: -> not a bug
stage: test needed -> resolved
status: open -> closed
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list