goto statement

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Wed Apr 20 08:04:41 EDT 2005


Maxim Kasimov wrote:
> Robert Kern wrote:
>> Maxim Kasimov wrote:
>> 
>>> Simon Brunning wrote:
>>>
>>>> On 4/20/05, Maxim Kasimov <kasimov at i.com.ua> wrote:
>>>>
>>>>> it would be quite useful for debuging porposes
>>>>
>>>>
>>>>
>>>>
>>>> How does goto help you to remove bugs?
>>>>
>>>> I can certainly see how it helps you put them in in the first place...
>>>>
>>>
>>> if you need to comment a couple of code (and then uncomment ), what 
>>> are you doing then?
>> 
>> 
>> Use comments?
>> 
> 
> WOW, just greate! ... but i'd like to relax at some more interesting way than to comment each of rows

Use multi-line string literals.

'''

This whole 'code' is "commented out", and you can
use every type of """quote""" except three singles.

'''

Or, if you really like the spirit of goto,
use "if 0:".

Reinhold



More information about the Python-list mailing list