Martin Panter <vadmium...@gmail.com> added the comment:

I presume this is because you are running a Unix shell, and it's nothing to do 
with Python. Look up how quoting and variable substitution with dollar signs $ 
works.

$ set -o nounset
$ python3 -c "import urllib.parse; print 
(urllib.parse.quote('ab$cd&efg#hij$klm'))"
bash: cd: unbound variable

Works fine in the Python interpreter:

>>> import urllib.parse; print (urllib.parse.quote('ab$cd&efg#hij$klm'))
ab%24cd%26efg%23hij%24klm

----------
nosy: +martin.panter
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44228>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to