This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author thomaslee
Recipients ezio.melotti, nagisa, orsenthil, terry.reedy, thomaslee
Date 2012-09-15.22:24:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347747852.73.0.672954901409.issue15887@psf.upfronthosting.co.za>
In-reply-to
Content
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. :)
History
Date User Action Args
2012-09-15 22:24:13thomasleesetrecipients: + thomaslee, terry.reedy, orsenthil, ezio.melotti, nagisa
2012-09-15 22:24:12thomasleesetmessageid: <1347747852.73.0.672954901409.issue15887@psf.upfronthosting.co.za>
2012-09-15 22:24:12thomasleelinkissue15887 messages
2012-09-15 22:24:11thomasleecreate