You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Various obvious errors in cookies documentation #55210
The text in the docstrings appears to be accurate, and it seems to me they clarify it even more than your suggested changes do. Also, I think SimpleCookie's encode/decode roughly implements some RFC or another (though there are some tweaks), and it might be worth mentioning that.
Even with these changes, though, I don't think it is possible to really understand what cookie is doing without reading the source, and even then it is non-obvious :(
Activity
spookylukey commentedon Jan 24, 2011
Docs for SimpleCookie, BaseCookie.value_encode and BaseCookie.value_decode are obviously incorrect. Attempt at patch attached.
The error has existed in every Python version I've seen, I've tagged the ones I believe can receive fixes, sorry if I've made a mistake.
Thanks.
bitdancer commentedon Jan 25, 2011
The text in the docstrings appears to be accurate, and it seems to me they clarify it even more than your suggested changes do. Also, I think SimpleCookie's encode/decode roughly implements some RFC or another (though there are some tweaks), and it might be worth mentioning that.
Even with these changes, though, I don't think it is possible to really understand what cookie is doing without reading the source, and even then it is non-obvious :(
BreamoreBoy commentedon Jul 18, 2014
Given the comments in msg126979 do we formally review this, close as "won't fix" or what?
bitdancer commentedon Jul 19, 2014
My suggestion was that the help text from the doc strings be used to update the ReST documentation.
Julsy commentedon May 4, 2019
Working on it at the moment
miss-islington commentedon May 7, 2019
New changeset 91cc01f by Miss Islington (bot) (Julia Iliuk) in branch 'master':
bpo-11001: updated cookie docs (GH-13086)
91cc01f
miss-islington commentedon May 7, 2019
New changeset 1fe722c by Miss Islington (bot) in branch '3.7':
[3.7] bpo-11001: updated cookie docs (GH-13086) (GH-13161)
1fe722c
gpshead commentedon May 7, 2019
Thanks Julia!