[Python-Dev] Re: Change to sys.path[0] for Python 2.3

Martin v. Loewis martin@v.loewis.de
Mon, 26 Nov 2001 22:54:22 +0100


> 2) The addition of sys.path[0] is changed to an earlier
>    time so it occurs before any imports; so sys.path[0]
>    works the same as sys.path[1:].  Currently it is added
>    after some imports have occurred.

I still try to finding the same mental picture for this as you
apparently have. I understand "changed to an earlier time".

What I don't understand is the effect that you associate with it:
sys.path[0] is a string, sys.path[1:] is a list. In what sense do they
"work the same"?

Regards,
Martin