With this patch urllib2.py will know how to order proxy classes, so the user doesn't have to insert it in front of other classes, nor do dirty tricks like inserting a "dummy" HTTPHandler after a ProxyHandler when building an opener with proxy support. It is also interesting enough to let the users easily create their own specially ordered handlers.