News for hackers. Stuff that matters.
Re:Goto decorator for python by majke on Sunday March 11, 2012 @07:00PM (#3691536)
That's not exactly a new idea: http://entrian.com/goto/

Jokes aside, Kay Schluehr did a package called generator_tools: http://www.fiber-space.de/generator_tools/doc/generator_tool...

I used it to do iterators serialisation in Python, which is quite an ambitious task (BTW, it should be supported by the language really).

Re:Goto decorator for python by gaius on Monday March 12, 2012 @05:56AM (#3692871)
From the linked Activestate page:

This is the recipe for you if you are sick of the slow speed of the existing goto module http://entrian.com/goto/. The goto in this recipe is about 60x faster

Re:Goto decorator for python by rcthompson on Sunday March 11, 2012 @07:27PM (#3691616)
How would you support a generator that reads lines from a file, or something else that depends on some volatile external state?