[issue15887] urlencode should accept iterables of pairs

2014-04-17 Thread Éric Araujo
Éric Araujo added the comment: >> "Convert a mapping object or a sequence of two-element tuples, which >> may either be a str or a bytes, to a “percent-encoded” string." > > Mappings, duple sequences, and duples cannot be str or bytes. The only thing making sense to me here is that “which” refer

[issue15887] urlencode should accept iterables of pairs

2014-04-16 Thread Thomas Fenzl
Changes by Thomas Fenzl : -- nosy: +Thomas Fenzl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue15887] urlencode should accept iterables of pairs

2012-09-15 Thread Thomas Lee
Thomas Lee added the comment: Patch attached. Terry, you'll notice I wrap the main part of the urlencode function in a big try/except block to catch TypeErrors & ValueErrors. I'm a bit concerned that doing this may misreport the true underlying error in the event we screw up values/types in a

[issue15887] urlencode should accept iterables of pairs

2012-09-15 Thread Thomas Lee
Thomas Lee added the comment: Working on a patch for this. Should be ready for review shortly. -- nosy: +thomaslee ___ Python tracker ___

[issue15887] urlencode should accept iterables of pairs

2012-09-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15887] urlencode should accept iterables of pairs

2012-09-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The first sentence of the urlencode entry is a bit garbled as something is clearly missing. "Convert a mapping object or a sequence of two-element tuples, which may either be a str or a bytes, to a “percent-encoded” string." Mappings, duple sequences, and dup