urllib/urllib2 support for specifying ip address

Chris Angelico rosuav at gmail.com
Thu Jun 19 10:23:31 EDT 2014


On Fri, Jun 20, 2014 at 12:19 AM, Robin Becker <robin at reportlab.com> wrote:
> in practice [monkeypatching socket] worked well with urllib in python27.

Excellent! That's empirical evidence of success, then.

Like with all monkey-patching, you need to keep it as visible as
possible, but if your driver script is only a page or two of code, it
should be pretty clear what's going on.

ChrisA



More information about the Python-list mailing list