This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: cmd.exe: python.exe -u fails to parse input to the interactive interpreter
Type: behavior Stage: resolved
Components: Windows Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: syntax error at end of line in interactive python -u
View: 11098
Assigned To: Nosy List: r.david.murray, santoso.wijaya
Priority: normal Keywords:

Created on 2011-03-04 19:00 by santoso.wijaya, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg130068 - (view) Author: Santoso Wijaya (santoso.wijaya) * Date: 2011-03-04 19:00
Observe:

C:\Users\santa>C:\Python27\python.exe -u
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print 'Hello world'
  File "<stdin>", line 1
    print 'Hello world'
                       ^
SyntaxError: invalid syntax
>>>
msg130069 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-03-04 19:11
Amazing.  This issue is unreported for years, Victor fixes it in python3, and *then* we get two bug reports for it against 2.7 in as many months :)

Anyway, this is a duplicate of issue 11098.  If you have a real use case for this, we can consider a backport, but otherwise it isn't worth it.
msg130070 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-03-04 19:17
Ah, I'm wrong, this has been reported earlier.... issue 707576.
History
Date User Action Args
2022-04-11 14:57:13adminsetgithub: 55608
2011-03-04 19:17:21r.david.murraysetmessages: + msg130070
2011-03-04 19:11:39r.david.murraysetstatus: open -> closed

superseder: syntax error at end of line in interactive python -u
type: behavior

nosy: + r.david.murray
messages: + msg130069
resolution: duplicate
stage: resolved
2011-03-04 19:00:32santoso.wijayasettitle: python.exe -u fails to parse input to the interactive interpreter -> cmd.exe: python.exe -u fails to parse input to the interactive interpreter
2011-03-04 19:00:03santoso.wijayacreate