goto statement

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Fri Apr 22 09:50:30 EDT 2005


Grant Edwards wrote:
> On 2005-04-21, Sergei Organov <osv at javad.ru> wrote:
>> Grant Edwards <grante at visi.com> writes:
>>
>>> On 2005-04-21, Peter Maas <peter at somewhere.com> wrote:
>>> > Maxim Kasimov schrieb:
>>> >> 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)
>>> >
>>> > - at first line of block enter: ma (mark line as 'a')
>>> > - go to last line of block
>>> > - enter :'a,.s/^/###/ (insert 3 comment chars at begin of line,
>>> >    starting from line marked as 'a' to current line)
>>> 
>>> Sure, but what about the case where his program is on paper
>>> tape and all he has for an editor is an ice pick?
>>
>> Then inserting goto doesn't seem to be an acceptable option either ;)
> 
> Scissors, tape, and a box full of prepunched "goto" and "label"
> statements.  Of course you could do the same with a bunch of
> pre-punched """ tape-chunks.

Why? You just cut out the piece of paper you want to comment, put it in
your drawer labeled "comments", and insert it again when you need it.

Reinhold



More information about the Python-list mailing list