Comments
Gerhard Häring
gerhard at bigfoot.de
Wed May 8 12:14:55 EDT 2002
Rajat Chopra wrote in comp.lang.python:
> Does anyone know if Python supports multi-line comments? I believe Java
> and C++ (and even non-ANSI C) have /* ... */ for multi-line. Does Python
> have anything comparable?
No.
To temporarily disable blocks of source code, you can use "if 0:". For
documenting functions, methods, classes and modules, you usually use
docstrings.
Gerhard
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
More information about the Python-list
mailing list