A case for "real" multiline comments
Chris Angelico
rosuav at gmail.com
Thu Apr 19 06:45:49 EDT 2012
On Thu, Apr 19, 2012 at 8:17 PM, Alek Storm <alek.storm at gmail.com> wrote:
>> comment def
>> ... parser completely ignores these lines ...
>> comment break
>
>
> I believe the more Pythonic syntax would be:
>
> comment:
> ...some
> ...indented
> ...lines
>
> God help us if that ever happens.
Certainly not. That completely ignores the whole point of this, which
is to remove a block of lines without editing them all. Anyway,
replace "comment:" with "if 0:" and you have it already. No, this is
something that's parsed before indentation blocks are processed.
ChrisA
More information about the Python-list
mailing list