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/142087.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 happenSerhiy Storchaka storchaka at gmail.com
Fri Oct 30 03:21:26 EDT 2015
On 30.10.15 03:22, Terry Reedy wrote:
> Leaving IDLE aside, the reason '' is added to sys.path is so that people
> can import their own modules.  This is very useful.  Shadowing is the
> result of putting it at the front.  I have long thought this a dubious
> choice.  If '' were instead appended, people could still import modules
> that did not duplicate stdlib names.  Anyone who wanted shadowing could
> move '' to the front.  But then shadowing would be intentional, not an
> accident.

LGTM.

AFAIK the sys module can't be shadowed.

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