Eryk Sun added the comment:
The error you're getting indicates that stdin is set to binary mode for some
reason. You can see this using the -u command line option:
C:\>py -2 -u
Python 2.7.10 (default, May 23 2015, 09:44:00)
[MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 0
File "<stdin>", line 1
a = 0
^
SyntaxError: invalid syntax
By any chance do you have PYTHONUNBUFFERED set in the environment?
----------
nosy: +eryksun
type: crash -> behavior
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue26400>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com