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

YoungBoy report at bugs.python.org
Fri Jan 8 23:38:16 EST 2016


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.

----------
assignee: docs at python
components: Documentation
messages: 257795
nosy: Wei, docs at python
priority: normal
severity: normal
status: open
title: sys.argv[0] is the python file, not ""
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26055>
_______________________________________


More information about the docs mailing list