[Python-checkins] cpython (2.7): Update 2.7 docs about legal characters allowed in Cookie name

senthil.kumaran python-checkins at python.org
Sun Apr 22 04:32:14 CEST 2012


http://hg.python.org/cpython/rev/a8af49baa636
changeset: 76463:a8af49baa636
branch: 2.7
parent: 76420:ab9d6c4907e7
user: Senthil Kumaran <senthil at uthcode.com>
date: Sun Apr 22 10:27:22 2012 +0800
summary:
 Update 2.7 docs about legal characters allowed in Cookie name
files:
 Doc/library/cookie.rst | 10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Doc/library/cookie.rst b/Doc/library/cookie.rst
--- a/Doc/library/cookie.rst
+++ b/Doc/library/cookie.rst
@@ -22,8 +22,14 @@
 
 The module formerly strictly applied the parsing rules described in the
 :rfc:`2109` and :rfc:`2068` specifications. It has since been discovered that
-MSIE 3.0x doesn't follow the character rules outlined in those specs. As a
-result, the parsing rules used are a bit less strict.
+MSIE 3.0x doesn't follow the character rules outlined in those specs and also
+many current day browsers and servers have relaxed parsing rules when comes to
+Cookie handling. As a result, the parsing rules used are a bit less strict.
+
+The character set, :data:`string.ascii_letters`, :data:`string.digits` and
+``!#$%&'*+-.^_`|~`` denote the set of valid characters allowed by this module
+in Cookie name (as :attr:`~Morsel.key`).
+
 
 .. note::
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /