[New-bugs-announce] [issue7154] urllib.request system proxy configuration lookup broken for OS X in Python 3

Ned Deily report at bugs.python.org
Sat Oct 17 00:46:48 CEST 2009


New submission from Ned Deily <nad at acm.org>:

On OS X, urllib.request in Python 3 is supposed to use the operating 
system's proxy configuration by default, unless overridden by 
environment variables or by the caller providing an explicit proxy 
configuration.

In Python 2, urllib (and, indirectly, urllib2) were modified to use the 
OS X SystemConfiguration framework API instead of the obsolete classic 
MacOS Internet Configuration via the deprecated Macintosh ic library 
module, which was removed in Python 3.

However, in the transition from Python 2 urllib/urllib2 to Python 3 
urllib.request, the changes to the darwin-specific getproxies functions 
were not made.  So, at the moment, Python 3 urllib.request tries to 
import the non-existant ic module and silently fails, effectively 
ignoring the system proxy configuration.  The solution is to forward 
port the corresponding code from Python 2 urllib along with the helper 
module _scproxy.c.

----------
assignee: ronaldoussoren
components: Library (Lib), Macintosh
messages: 94153
nosy: ned.deily, ronaldoussoren
severity: normal
status: open
title: urllib.request system proxy configuration lookup broken for OS X in Python 3
versions: Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7154>
_______________________________________


More information about the New-bugs-announce mailing list