[issue18140] urlparse, urlsplit confused when password includes fragment (#), query (?)

Martin Panter report at bugs.python.org
Sat Jan 19 01:52:28 EST 2019


Martin Panter <vadmium+py at gmail.com> added the comment:

Today I read RFC 3986, and I think the URLs in the bug reports are valid, and are already parsed correctly. The path is allowed to have a literal “at” symbol:

path-abempty = *( "/" segment )
segment = *pchar
pchar = unreserved / pct-encoded / sub-delims / ":" / "@"

The query and fragment are allowed to have “at” and question marks:

query = *( pchar / "/" / "?" )
fragment = *( pchar / "/" / "?" )

So I think this could be closed because the parsing is working correctly.

----------
resolution:  -> not a bug
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue18140>
_______________________________________


More information about the Python-bugs-list mailing list