[issue26055] sys.argv[0] is the python file, not ""

2016-01-08 Thread YoungBoy
Changes by YoungBoy : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue26055] sys.argv[0] is the python file, not ""

2016-01-08 Thread random832
random832 added the comment: By "when no script [is] given", it is referring to the use in the interactive interpreter, not in a python file. -- nosy: +random832 ___ Python tracker

[issue26055] sys.argv[0] is the python file, not ""

2016-01-08 Thread YoungBoy
New submission from YoungBoy: python tutorial 2.1.1 You can access this list by executing import sys. The length of the list is at least one; when no script and no arguments are given, sys.argv[0] is an empty string. but, when i try it, the sys.argv[0]is the filename,not empty string. --