Replace for Goto

Gerrit Holl gerrit at nl.linux.org
Sun Jun 1 17:03:09 EDT 2003


Ulrich Petri schreef op donderdag 29 mei om 03:12:02 +0000:
> "Dvm5" <dvm5_0 at hotmail.com> schrieb im Newsbeitrag
> news:aa2e3602.0305281646.32cf1129 at posting.google.com...
> > I'm used to Basic. There is a Goto/Label command, you put goto where
> > you want it to come from and label where you want it to go. Simple.
> > How can I do this in Python?
> >
> > What I'm trying to do is create a "play again" type user interface.
> > Thus, I can't alter the program to use an If command; the option has
> > to be at the end, and the effect has to be at the begining! How do I
> > accomplish this?
> >
> > If there is another way, other than a similar thing to Goto, tell me
> > that, as well as a similar thing for goto. It would probably be useful
> > later on...
> >
> 
> If this was not intended as a troll posting you should get a book on general
> programming style.....

LABEL: vatnajokul
"Dvm5" wrote that he is used to Basic. That means we should not me angry
at *him* because he is used to bad style, but angry at *Basic* (not a
very difficult thing). He (or she?) does apparantly not know about
functional/modular programming, let alone OO. Years ago, I didn't either:

http://groups.google.nl/groups?ie=UTF-8&oe=UTF-8&as_ugroup=comp.lang.python&as_uauthors=Gerrit%20Holl&lr=&as_drrb=b&as_mind=12&as_minm=5&as_miny=1981&as_maxd=1&as_maxm=12&as_maxy=1998&hl=nl

> goto *urgh*

I would appreciate if you would keep the good atmosphere in the Python
newsgroup. Basic-people should be treated gentle because they still
have a lot to learn.

I think the sentence part "...as a troll posting..." is not kind, although
I may be wrong (my English isn't perfect). If I am, you can consider
this post as never sent ;)

GOTO vatnajokul

got here ;)?

yours,
Gerrit.

-- 
169. If he be guilty of a grave fault, which should rightfully deprive
him of the filial relationship, the father shall forgive him the first
time; but if he be guilty of a grave fault a second time the father may
deprive his son of all filial relation. 
        -- Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list