Very strange behaviour on Windows

Joonas Paalasmaa joonas.paalasmaa at iki.fi
Sat May 4 16:48:30 EDT 2002


When I invoke the interactive interpreter on Windows, Python claims that
every
line I type is syntactically invalid. However, when the interpreter is
used to start
scripts, everything seems to be working quite fine. The problem is
propably in Windows's
command-line, but what the problem could be?

C:\>python
Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print
  File "<stdin>", line 1
    print
         ^
SyntaxError: invalid syntax
>>>
  File "<stdin>", line 1

    ^
SyntaxError: invalid syntax
>>>
C:\>more > test.py
print "foo"
C:\>python test.py
foo



More information about the Python-list mailing list