explicit self revisited

Duncan Booth duncan.booth at invalid.invalid
Sun Nov 12 04:55:53 EST 2006


Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:

> On Sun, 12 Nov 2006 01:55:35 +0100, Fredrik Lundh
><fredrik at pythonware.com> declaimed the following in comp.lang.python:
> 
> 
>> 
>> ah, good point.  I've updated the FAQ.
>>
>      Ah, but do we dare update the Wikipedia link to include Python as a
> language capable of COMEFROM? <G>

Somebody definitely should. The current wikipedia article contains an 
example in a hypothetical dialect of BASIC ('because an actual example in 
INTERCAL would be too difficult to read'). Somebody should enhance the 
article with the equivalent example in Python which is both easy to read 
and can actually be run:

from goto import goto, comefrom, label

comefrom .repeat
name = raw_input('what is your name? ')
if name:
    print "Hello",name
    label .repeat

print "Goodbye!"




More information about the Python-list mailing list