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/2001-November/018714.html below:

Change to sys.path[0] for Python 2.3

[Python-Dev] Re: Change to sys.path[0] for Python 2.3 [Python-Dev] Re: Change to sys.path[0] for Python 2.3Martin 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




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