[issue19808] IDLE applies syntax highlighting to user input in its shell

2017-06-29 Thread Terry J. Reedy

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19808] IDLE applies syntax highlighting to user input in its shell

2013-11-30 Thread Peter Otten

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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19808
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19808] IDLE applies syntax highlighting to user input in its shell

2013-11-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19808
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19808] IDLE applies syntax highlighting to user input in its shell

2013-11-30 Thread Terry J. Reedy

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 purple, and 'allo' is 
black again. It is not a critical bug, but certainly annoying, especially to a 
new user.

For editor windows, colorizing is only done for .py(wo) files. I do not know 
how the colorizing is switched on after the file name is checked. The shell 
window is an editor window. It should switch to .py mode after printing  and 
back to .txt mode when \n or \n\n is entered to complete a statement. I believe 
the edit will be in pyshell.py

I expect the prompt and echoed input are both written to stdout by the user 
process. Neither are errors and both are colored blue. Warnings and exception 
tracebacks on stderr are red. Both come into the idle process via the socket 
connection, which is different from the idle process stdin connected to the 
keyboard.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19808
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19808] IDLE applies syntax highlighting to user input in its shell

2013-11-29 Thread Terry J. Reedy

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 3.3 and 3.4 is that 3.3 input is being treated like 
2.7 input rather than like 2.7 raw_input.

I suspect that we just need to find and delete the code that detects 'input()' 
and triggers highlighting.

--
nosy: +terry.reedy
type:  - behavior
versions: +Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19808
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19808] IDLE applies syntax highlighting to user input in its shell

2013-11-27 Thread Peter Otten

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com