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.
Created on 2009年10月16日 22:46 by ned.deily, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg94153 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2009年10月16日 22:46 | |
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. |
|||
| msg96185 - (view) | Author: Ronald Oussoren (ronaldoussoren) * (Python committer) | Date: 2009年12月09日 21:49 | |
I agree that _scproxy should be ported to the 3.x trees. Such a port should be fairly straightforward, but is harder than just copying files over due to the str/unicode changes in the 3.x tree. |
|||
| msg103527 - (view) | Author: Ronald Oussoren (ronaldoussoren) * (Python committer) | Date: 2010年04月18日 20:50 | |
I've committed a port of _scproxies and the related code in urllib in r80198 (3.2), r80199 (3.1) BTW. With some luck this should already include a fix for the crash your seeing on OSX 10.3 with the trunk and 2.6. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:54 | admin | set | github: 51403 |
| 2010年04月18日 20:50:44 | ronaldoussoren | set | type: behavior stage: resolved |
| 2010年04月18日 20:50:32 | ronaldoussoren | set | status: open -> closed resolution: fixed messages: + msg103527 |
| 2009年12月09日 21:49:18 | ronaldoussoren | set | messages: + msg96185 |
| 2009年10月16日 22:46:46 | ned.deily | create | |