This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mgiuca
Recipients loewis, mgiuca, orsenthil, thomaspinckney3
Date 2008-07-10.01:54:57
SpamBayes Score 0.0048904107
Marked as misclassified No
Message-id <>
OK well here are the necessary changes to the documentation (RST docs
and docstrings in the code).

As I said above, I plan to to extensive testing and add new cases, and I
don't recommend this patch is accepted until that's done.

Patch ( is for branch /branches/py3k, revision 64834.

Commit log:

urllib.parse.unquote: Added "encoding" and "errors" optional arguments,
allowing the caller to determine the decoding of percent-encoded octets
(previously implicitly decoded as ISO-8859-1). As per RFC 3986, default
is "utf-8".

urllib.parse.quote: Added "encoding" and "errors" optional arguments,
allowing the caller to determine the encoding of non-ASCII characters
before being percent-encoded (previously characters in range(128, 256)
were encoded as ISO-8859-1, and characters above that as UTF-8). Also
fixed characters greater than 256 not responding to "safe", and also not
being cached.

Doc/library/urllib.parse.rst: Updated docs on quote and unquote to
reflect new interface.

Lib/test/, Lib/test/ Updated test
cases which expected output in ISO-8859-1, now expects UTF-8.

Lib/email/ Calls urllib.parse.quote and urllib.parse.unquote
with encoding="latin-1", to preserve existing behaviour (which the whole
email module is dependent upon).
Date User Action Args
2008-07-10 01:55:01mgiucasetspambayes_score: 0.00489041 -> 0.0048904107
recipients: + mgiuca, loewis, orsenthil, thomaspinckney3
2008-07-10 01:55:01mgiucasetspambayes_score: 0.00489041 -> 0.00489041
messageid: <>
2008-07-10 01:55:00mgiucalinkissue3300 messages
2008-07-10 01:54:59mgiucacreate