A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-January/137764.html below:

[Python-Dev] Overriding stdlib http package

[Python-Dev] Overriding stdlib http package [Python-Dev] Overriding stdlib http packageDemian Brecht demianbrecht at gmail.com
Wed Jan 14 18:37:21 CET 2015
Hm, I /did/ try that but ran into issues. Swapping the custom finder for
the monkey patch now seems to work as expected though. Could be that I
was doing something else at the time that caused it not to work.

I'll keep running with that and will ping the thread if the issues
surface again.

Thanks!

On 2015-01-14 8:54 AM, Antoine Pitrou wrote:
> What don't you simply monkeypatch sys.modules, e.g.:
> 
>   import myhttplib
> 
>   sys.modules['http'] = myhttplib
> 
> or doesn't it work as desired?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150114/e5656ca4/attachment.sig>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4