wish: multiline comments

Fredrik Lundh fredrik at pythonware.com
Wed Dec 1 10:43:42 EST 1999


Adrian Eyre <a.eyre at optichrome.com> wrote:
> Not quite the same is it? A docstring will be put in the .pyc.
> A comment won't.

well, the compiler throws away strings that does
not appear in valid docstring positions.  if you put
this in a module:

class B:
    "this is class B"
    """"
okay. this is a 42 million line comment string.
etc etc etc
"""

and import it, the PYC file is smaller than you
may think.

</F>





More information about the Python-list mailing list