Re: [Python-Dev] Overriding stdlib http package

2015年1月14日 09:03:52 -0800

On 2015年1月14日 08:32:23 -0800
Demian Brecht <[email protected]> wrote:
> Hi all,
> 
> As part of the work I'm doing on httplib3 (now that I've actually gotten
> a bit of time), one of the things I'm trying to get done is injection of
> httplib3 over http in order to not have to modify all import paths in
> modules and such. Here's the gist of what I have so far:
> https://gist.github.com/demianbrecht/bc6530a40718e4fcbf90.
What don't you simply monkeypatch sys.modules, e.g.:
 import myhttplib
 sys.modules['http'] = myhttplib
or doesn't it work as desired?
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to