I have a situation where depending on what the user selects in my package, I need to install multiple handlers.
Example I have 3 handlers. If a user says they want to use a proxy, then you need to add a proxy handler, but this isn't always the situation.
So can you call opener = urllib2.build_opener() multiple times without overwriting the existing handlers?
example: opener = urllib2.build_opener(RedirectHandler()) opener = urllib2.build_opener(ProxyHandler())... etc...
I don't need all the handlers all the time, and I don't feel like making use cases for each situation.
Thank you
The answer turned out to be quite simple.
That's it! It was just a *.