[Pythonmac-SIG] Does urllib.getproxies() work in 2.4/2.5 on Mac?

Bill Janssen janssen at parc.com
Sat Aug 18 23:12:38 CEST 2007


I noticed that with the system Python 2.3.5 on OS X 10.4, the
automatic proxy setting doesn't work for urlopen().  It's because the
code in urllib.py expects os.name() to return 'mac', and instead it
returns 'posix'.

Is this fixed in later versions of Python, anyone know?  You can test
by calling "urllib.getproxies()" and seeing if it returns your
proxysettings.

Bill


More information about the Pythonmac-SIG mailing list