Where is path.py?

Chris Angelico rosuav at gmail.com
Thu Nov 27 11:18:12 EST 2014


On Fri, Nov 28, 2014 at 2:30 AM, David Aldrich
<David.Aldrich at emea.nec.com> wrote:
> Thanks.  But I don't quite understand.  If I use sys:
>
> import sys
>
> args = sys.argv[1:]
>
> I don't need to use 'from'.  What is different with using path?

You could instead say:

from sys import argv
args = argv[1:]

The only confusing bit here is that instead of "sys" and "argv", you
have "path" and "path", the same name twice. But it's the same thing
happening.

ChrisA



More information about the Python-list mailing list