goto statement

Peter Hansen peter at engcorp.com
Wed Apr 20 09:30:07 EDT 2005


Maxim Kasimov wrote:
> Torsten Bronger wrote:
> 
>> Hallöchen!
>>
>> Maxim Kasimov <kasimov at i.com.ua> writes:
>>>
>>> WOW, just greate! ... but i'd like to relax at some more
>>> interesting way than to comment each of rows
> 
> but what if i just can't to do this becouse i'm working thrue ssh, and 
> have to use only installed editors (such as vi)

Surely you use more than one-character indents?  If
that's so, you can just insert the "if 0:" using, say,
two characters indentation instead of the usual four.
Then the following four-character-indented code is
removed.

Alternatively, use ''' and ''' surrounding the code
block and it will be ignored.

-Peter



More information about the Python-list mailing list