[issue44228] [urllib] Error with handling of urllib.parse.quote. Terminates halfway

Swee Tat Lim report at bugs.python.org
Mon May 24 21:42:38 EDT 2021


New submission from Swee Tat Lim <sweetat at withevo.com>:

Running this

python3 -c "import urllib.parse; print (urllib.parse.quote('ab$cd&efg#hij$klm'))"

Results:
ab%26efg%23hij

Expected Result:
ab%26efg%23hij%26klm

Not sure why it terminated midway

----------
components: Library (Lib)
messages: 394284
nosy: sweetat
priority: normal
severity: normal
status: open
title: [urllib] Error with handling of urllib.parse.quote.  Terminates halfway
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9

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


More information about the Python-bugs-list mailing list