Goto in Python

konfab

Honorary Master
Joined
Jun 23, 2008
Messages
45,928
Reaction score
39,888
Location
Watership Down
This is old, and should probably be in off-topic. But nevertheless, I present a GOTO module for Python
Adds the 'goto' and 'comefrom' keywords to Python.

The 'goto' and 'comefrom' keywords add flexibility to Python's control flow mechanisms, and allow Python programmers to use many common control flow idioms that were previously denied to them. Some examples are given below.
http://entrian.com/goto/

So how many of you want to obfuscate your beautifully written pythonic code?
 
Awesome! , will they implement on error resume next too ?
They should also consider porting it to Scala
 
If you use GOTO in code, the ghosts of Ada Lovelace and Charles Babbage smash your face in with pick axe handles.

This is true. A Welsh computer scientist called Huw told me so in 1991. Welsh people almost never lie about such important matters.
 
Actually had to use goto in batch files a couple of months ago. But that was only time ever. Why you would want this Python though...? :wtf:
 
So the chick told her boyfriend to go to hell.

Thing is, he saw the command as harmful instead of the destination.

:D
 
Top
Sign up to the MyBroadband newsletter
X