Python 2.x and 3.x usage survey

Dave Angel davea at davea.name
Wed Jan 1 09:32:37 EST 2014


On Wed, 01 Jan 2014 14:38:59 +0200, Steve Hayes 
<hayesstw at telkomsa.net> wrote:
> >>> python g:\work\module1.py
>   File "<stdin>", line 1
>     python g:\work\module1.py
>            ^


> Which gave a different error the previous time I did it. 


> But, hey, it worked from the DOS prompt


> C:\Python32>python g:\work\module1.py
> Hello Module World

You need to understand that you are using two VERY different 
languages,  one at the DOS prompt,  the other at the python prompt 
and in .py files. You cannot use shell syntax at the python prompt, 
any more than you can do the reverse.

-- 
DaveA




More information about the Python-list mailing list