wish: multiline comments

Thomas Heller thomas.heller at ion-tof.com
Wed Dec 1 11:02:11 EST 1999


> 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.

AFAIK, python chokes on source files with more than
32767 lines (or was it 65536)?
But I never tried it.

Thomas Heller





More information about the Python-list mailing list