Main      Site Guide    
Message Forum
Python Question
Posted By: ang, on host 65.114.71.243
Date: Wednesday, June 19, 2002, at 14:34:06

First of all, if you want me to find another resident Python expert so I'll quit bugging you, just say so and I will. :)

Otherwise, here's my Q:

How do I do the equivalent of the GOTO command? I found the following (_ represents TABs):

class label: pass # declare a label
____try:
________...
________if (condition): raise label() # goto label
________...
____except label: # where to goto
________pass

on the website FAQ but I can't make it work. I don't fully understand which words/symbols are variables and which are actual commands. My problem is backtracking to a previous 'while' loop so my character can re-visit previous locations that remain in the same state.

Thanks,
Angela

Replies To This Message

Post a Reply

RinkChat Username:
Password:
Email: (optional)
Subject:
Message:
Link URL: (optional)
Link Title: (optional)

Make sure you read our message forum policy before posting.