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-October/142091.html below:

[Python-Dev] If you shadow a module in the standard library that IDLE depends on, bad things happen

[Python-Dev] If you shadow a module in the standard library that IDLE depends on, bad things happen [Python-Dev] If you shadow a module in the standard library that IDLE depends on, bad things happenBrett Cannon brett at python.org
Sat Oct 31 01:13:28 EDT 2015
On Fri, 30 Oct 2015 at 21:42 Terry Reedy <tjreedy at udel.edu> wrote:

> On 10/30/2015 3:21 AM, Serhiy Storchaka wrote:
>
> > AFAIK the sys module can't be shadowed.
>
> I tried it and it seems to be true of builtins in general.
>

The importer on sys.meta_path that handles built-ins is earlier than the
one that handles sys.path (technically you can shadow them if you changed
sys.meta_path).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20151031/515813ba/attachment.html>
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