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/142092.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
Sat Oct 31 02:07:48 EDT 2015
On 30.10.15 09:57, Nathaniel Smith wrote:
> Unfortunately I think that (among other things) there are a lot of
> scripts out there that blindly do sys.path.pop(0) to remove the ""
> entry, so the backcompat costs of changing this would probably be
> catastrophic.

You are right. There are too much occurrences even in public libraries.

https://code.openhub.net/search?s=%22sys.path.pop(0)%22&p=0

Possible workaround is to add fake path (or a duplicate of system path) 
at the start of sys.path. Then dropping first element will not break the 
script.


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