FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-92936: update `http.cookies` docs post GH-113663 by nburns · Pull Request #137566 · python/cpython · GitHub

Repository navigation

8 changes: 8 additions & 0 deletions Doc/library/http.cookies.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ in a cookie name (as :attr:`~Morsel.key`).
.. versionchanged:: 3.3
Allowed ':' as a valid cookie name character.
Comment thread
nburns marked this conversation as resolved.
Resolved

.. versionchanged:: 3.15
Comment thread
nburns marked this conversation as resolved.
Resolved
Allowed '"' as a valid cookie value character.
Comment thread
nburns marked this conversation as resolved.
Resolved

.. note::

Expand Down Expand Up @@ -314,3 +316,9 @@ The following example demonstrates how to use the :mod:`http.cookies` module.
>>> print(C)
Set-Cookie: number=7
Set-Cookie: string=seven
>>> C = cookies.SimpleCookie()
>>> C.load('cookies=7; mixins="{"chips": "dark chocolate"}"; state="gooey"')
>>> print(C)
Set-Cookie: cookies=7
Set-Cookie: mixins="{"chips": "dark chocolate"}"
Comment thread
nburns marked this conversation as resolved.
Resolved
Set-Cookie: state="gooey"
Comment thread
nburns marked this conversation as resolved.
Resolved

Back | FazBrowse Home | New Git URL