[issue22931] cookies with square brackets in value

2015-01-28 Thread Dan LaMotte
Changes by Dan LaMotte lamott...@gmail.com: -- nosy: +dlamotte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22931 ___ ___ Python-bugs-list

[issue23341] Issue parsing valid cookie

2015-01-28 Thread Dan LaMotte
Dan LaMotte added the comment: Yes, this is a duplicate of that bug. Sorry. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23341

[issue23341] Issue parsing valid cookie

2015-01-28 Thread Dan LaMotte
New submission from Dan LaMotte: I recently discovered that a valid cookie (by the RFC) is not parse-able by the Cookie library in python's standard library. import Cookie c = Cookie.SimpleCookie('key=[ab]cd[ef]') print c.keys() # yields [] When quoted, it works fine: c