[issue29285] Unicode errors occur inside of multi-line comments

R. David Murray report at bugs.python.org
Tue Jan 17 09:46:13 EST 2017


R. David Murray added the comment:

@zach: actually, triple quoted strings *are* suggested as a way to do multiline comments, and are often used for that.  In particular, note that they do not appear in the byte code files if they are not assigned to anything or appear in the docstring position.  This is something I had to prove to myself at one point when I had the same reaction you just did to their use as comments :)  

That said, it is true that they are, first and foremost, strings, so the quoting behavior is not going to change.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29285>
_______________________________________


More information about the Python-bugs-list mailing list