Talk:Comments: Difference between revisions

Content added Content deleted
No edit summary
Line 42: Line 42:


:::Any reference should be linked. As long as it's relevant to the project, language or code used. Even though we provide a lot of code in Rosetta Code, sometimes this isn't enough. I don't see why we shouldn't allow anyone to read more on a given subject. This is of course true for this issue, but it also is for any other. --[[User:CrashandDie|CrashandDie]] 01:11, 5 October 2007 (MDT)
:::Any reference should be linked. As long as it's relevant to the project, language or code used. Even though we provide a lot of code in Rosetta Code, sometimes this isn't enough. I don't see why we shouldn't allow anyone to read more on a given subject. This is of course true for this issue, but it also is for any other. --[[User:CrashandDie|CrashandDie]] 01:11, 5 October 2007 (MDT)

== [[Python]]: move docstrings to its own task ==

Python docstrings are not comments and are not ignored by the compiler/interpreter. Strings in the source are also not ignored - they are probably crated and destroyed at runtime, and are not the way to comment code.

We can add the Pythonic way to comment code:
<pre>
if 0:
print 'this line is commented out'
print 'so is this line'
</pre>