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 occur
On Fri, 30 Oct 2015 at 21:42 Terry Reedy 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 handle
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.
--
Terry Jan Reedy
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/
ACTIVITY SUMMARY (2015-10-23 - 2015-10-30)
Python tracker at http://bugs.python.org/
To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.
Issues counts and deltas:
open5204 (+23)
closed 32073 (+30)
total 37277 (+53)
Open issues wit
On Oct 29, 2015 6:26 PM, "Terry Reedy" wrote:
>
> On 10/29/2015 11:59 AM, Laura Creighton wrote:
>>
>>
>> see the following:
>> lac@smartwheels:~/junk$ echo "print ('hello there')" >string.py
>> lac@smartwheels:~/junk$ idle-python3.5
>> hello there
>> Traceback (most recent call last):
>>File
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