[issue2189] urllib.quote() throws KeyError when passed an iterator

2008-03-19 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: Yeah, I'm going to agree that urllib's documentation is clear about it taking a string instead of a list. -- assignee: -> jafo nosy: +jafo priority: -> normal resolution: -> wont fix status: open -> closed type: -> behavior _

[issue2189] urllib.quote() throws KeyError when passed an iterator

2008-02-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: Does something in the docs lead you to believe urllib.quote should accept a list of strings? The stdlib tends to shun type-checking to make cleaner and faster code, and let the client get exceptions like these. -- nosy: +benjamin.peterson ___

[issue2189] urllib.quote() throws KeyError when passed an iterator

2008-02-25 Thread djc
New submission from djc: >>> urllib.quote(['', 'aa']) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/urllib.py", line 1205, in quote res = map(safe_map.__getitem__, s) KeyError: '' I think this is a weird error message to throw. quote() is obviously assu