can scriptname be empty when supplying command-line arg?
<p>using module sys one can get command line arguments like this</p>

<pre><code>import sys
for x in sys.argv:
    print x
</code></pre>

<p>then at command shell[ubunto]</p>

<pre><code>&gt;&gt;python file.py 1, 2, 3
</code></pre>

<p>this will print 
file[filename]
1
2
3
Now comes my doubt
in python documentaion 3.0.1 it is mentioned that</p>

<p><strong>If no script name was passed to the Python interpreter, argv[0] is the empty string.</strong></p>

<pre><code>&gt;&gt;python  1, 2, 3
</code></pre>

<p>if i pass no script name , it will lead to error that 'can't open a file'. How would argv[0] be intitialized to an empty string when you are not passing script name ?</p>
