[issue23885] urllib.quote horribly mishandles unicode as second parameter

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23885] urllib.quote horribly mishandles unicode as second parameter

2020-05-31 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue23885] urllib.quote horribly mishandles unicode as second parameter

2019-08-14 Thread Michael Sander
Michael Sander added the comment: Couldn't this be fixed in a backwards compatible way by clearing the cache when this type of error occurs? We can do this by wrapping the offending line with a try/except, then checking to see if the cache is corrupted. If it is, then we clear the cache and

[issue23885] urllib.quote horribly mishandles unicode as second parameter

2015-04-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, orsenthil type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23885 ___

[issue23885] urllib.quote horribly mishandles unicode as second parameter

2015-04-07 Thread Marcin Koƛcielnicki
New submission from Marcin Koƛcielnicki: All hell breaks loose when unicode is passed as the second argument to urllib.quote in Python 2: import urllib urllib.quote('\xce\x91', u'') Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.7/urllib.py, line

[issue23885] urllib.quote horribly mishandles unicode as second parameter

2015-04-07 Thread R. David Murray
R. David Murray added the comment: The typerror isn't going to happen for backward compatibility reasons. A fix isn't likely to happen because python2 doesn't really support unicode in urllib, to my understanding (if I'm wrong about that the answser changes). I'm not sure whether casting to