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 cheryl.sabella
Recipients cheryl.sabella, eric.araujo, ezio.melotti, joern, orsenthil
Date 2017-07-04.00:01:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499126511.58.0.946163273476.issue12910@psf.upfronthosting.co.za>
In-reply-to
Content
Issue 16285 updated the urllib.parse.quote() reserved list to add '~'.

From the docstring:
def quote(string, safe='/', encoding=None, errors=None):
    """quote('abc def') -> 'abc%20def'

    Each part of a URL, e.g. the path info, the query, etc., has a
    different set of reserved characters that must be quoted.

    RFC 3986 Uniform Resource Identifiers (URI): Generic Syntax lists
    the following reserved characters.

    reserved    = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
                  "$" | "," | "~"

    Each of these characters is reserved in some component of a URL,
    but not necessarily in all of them.

    Python 3.7 updates from using RFC 2396 to RFC 3986 to quote URL strings.
    Now, "~" is included in the set of reserved characters.

--------------------------------------------
However, looking at RFC3986 (https://tools.ietf.org/html/rfc3986), appendix A has the following:

   unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
   reserved      = gen-delims / sub-delims
   gen-delims    = ":" / "/" / "?" / "#" / "[" / "]" / "@"
   sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
                 / "*" / "+" / "," / ";" / "="

----------------------------------------------------
Should the missing ones be added or should this issue be closed if they aren't going to be added?

Thanks.
History
Date User Action Args
2017-07-04 00:01:52cheryl.sabellasetrecipients: + cheryl.sabella, orsenthil, ezio.melotti, eric.araujo, joern
2017-07-04 00:01:51cheryl.sabellasetmessageid: <1499126511.58.0.946163273476.issue12910@psf.upfronthosting.co.za>
2017-07-04 00:01:51cheryl.sabellalinkissue12910 messages
2017-07-04 00:01:51cheryl.sabellacreate