Talk:Python (programming language): Difference between revisions

Content deleted Content added
Fredrik (talk | contribs)
No edit summary
Line 246:
:''However, if the block that is being out-commented contains docstrings it wont work and the code wont run.''
What is that supposed to mean? - [[User:Fredrik|Fredrik]] | [[User talk:Fredrik|talk]] 02:43, 14 Jan 2005 (UTC)
 
Imagine this:
 
def foo():
"""Hi foo()"""
 
"docstringing" it out:
 
"""
def foo():
"""Hi foo()"""
"""
 
The compiler will throw a SyntaxError at "Hi foo()" because it thinks that is the code. Ok badly phrased, but the essence is that commenting using docstrings is bad. :) [[User:Eric B. and Rakim|Eric B. and Rakim]] 02:55, 14 Jan 2005 (UTC)