Terry J. Reedy added the comment:
Still a problem in 3.6.
--
assignee: -> terry.reedy
stage: -> test needed
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4
___
Python tracker
Peter Otten added the comment:
I think the prompt can easily be treated differently because it is written to
stderr.
I don't see a difference for user input between input() and raw_input() on
Linux with Python 2.7.2+ -- syntax-highlighting is applied to both.
--
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19808
___
___
Terry J. Reedy added the comment:
On a freshly booted machine, I retried 2.7.6/Windows/raw_input() 'for all the'
and indeed I now see 'for' and 'all' colored.
The colorizing is done char by char. 'fo' is black, 'for' turns orange, 'forr'
turns black again. Similarly, 'al' is black, 'all is
Terry J. Reedy added the comment:
I checked and Idle does not color code the prompt. In 2.7, it only color-codes
the response to input(prompt), which is eval-ed as Python code, but not the
response to raw_input(prompt). (In 2.7, the code and input displayed raises
SyntaxError.) So the bug in
Changes by Peter Otten __pete...@web.de:
--
title: IDLE applys syntax highlighting to user input in its shell - IDLE
applies syntax highlighting to user input in its shell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19808