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 way that doesn't relate to the 'query' 
argument, but I think the code seems to do a pretty good job of ensuring that 
won't happen -- so that fear may be unfounded.

You'll see I reworked the documentation quite a bit. The wording was a bit odd 
in places, and I called out a few things that may not be obvious at a glance. 
Hopefully it seems like an improvement. :)

----------
keywords: +patch
Added file: http://bugs.python.org/file27198/issue-15887-01.patch

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

Reply via email to