homepage

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: Cannot comment out comments
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 2.7, Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: nulchar, r.david.murray
Priority: normal Keywords:

Created on 2012年04月24日 18:07 by nulchar, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
comment.py nulchar, 2012年04月24日 18:07 Example Script
Messages (2)
msg159180 - (view) Author: Nul Character (nulchar) Date: 2012年04月24日 18:07
When attempting to comment out a comment and thus nullifying it, the interpreter just double comments the line. This behavior works with multiline comments, however, the single line comments "double-comment" the line.
msg159181 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012年04月24日 18:12
A comment is a comment. *All* characters after the # are ignored, including other #s.
Also, Python doesn't have multiline comments. (Well, you can use a triple quoted string as a multiline comment, but it is still a string, and follows the syntax rules of strings.)
History
Date User Action Args
2022年04月11日 14:57:29adminsetgithub: 58868
2012年04月24日 18:12:22r.david.murraysetstatus: open -> closed

type: performance -> behavior

nosy: + r.david.murray
messages: + msg159181
resolution: not a bug
stage: resolved
2012年04月24日 18:07:12nulcharcreate

AltStyle によって変換されたページ (->オリジナル) /