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: Syntax highlighting marks multiline comments as strings
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.4
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: THRlWiTi, rhettinger, terry.reedy
Priority: low Keywords:

Created on 2015-06-14 06:16 by THRlWiTi, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg245334 - (view) Author: Thrlwiti (THRlWiTi) * Date: 2015-06-14 06:16
It has been suggested by BDFL to use triple-quoted strings as multiline comments.[1]

Allegedly, some editors already makes a distinction between these kind of comments and docstring and highlight them differently.

It would be nice if IDLE could also highlight these kind of comments with the same color as the other single-line comments.

[1]: https://stackoverflow.com/posts/7696966/revisions
msg245350 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2015-06-14 19:09
-1 on changing the syntax highlighting for strings used as comments.  Whether used as comments or for other purposes, they are still strings and the distinction is important for teaching Python.
msg245516 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2015-06-19 19:44
It is impossible for Idle to know the purpose of a multiline string.
History
Date User Action Args
2022-04-11 14:58:18adminsetgithub: 68636
2015-06-19 19:44:09terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg245516

resolution: rejected
stage: resolved
2015-06-14 19:09:06rhettingersetpriority: normal -> low
nosy: + rhettinger
messages: + msg245350

2015-06-14 06:16:16THRlWiTicreate