Sanyam Khurana <sanyam.khuran...@gmail.com> added the comment:
Closed Issue 37853 as a duplicate. Adding Fatih's comment from there for urllib.parse.urlparse ------------------------------------------------------------- No problem for these: "http://localhost:9100" "http://user:password@localhost:9100" But, these are problematic: "http://use#r:password@localhost:9100" "http://user:pass#word@localhost:9100" ``` from urllib.parse import urlparse url = "http://us#er:123@localhost:9001/RPC2" u = urlparse(url) print(u) # ParseResult(scheme='http', netloc='us', path='', params='', query='', fragment='er:123@localhost:9001/RPC2') ``` -------------------------------------- ---------- nosy: +CuriousLearner versions: -Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37854> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com