Jun-21-2019, 01:49 PM
Hi,
And abusing docstrings for comments is still wrong.
Except this, the original post talked about double quotes, not triple quotes.
Regards, noisefloor
Quote: I think of docstring just as a special kind of comment, and those require triple quotes.I waited for that coming up... Docstrings are for documentation purposes, as the name says. Docstring can be read without looking into the source code, comments not. Comments give _additional_ info when reading through the source code, docstrings give info on how to use a class / function / ... - that's not the same.
And abusing docstrings for comments is still wrong.
Except this, the original post talked about double quotes, not triple quotes.
Regards, noisefloor