5 ms·
That's not exactly a new idea: http://entrian.com/goto/ http://entrian.com/goto/ Jokes aside, Kay Schluehr did a package called generator_tools: http://www
by majke 15y ago
That's not exactly a new idea:
http://entrian.com/goto/ http://entrian.com/goto/
Jokes aside, Kay Schluehr did a package called generator_tools:
http://www.fiber-space.de/generator_tools/doc/generator_tools.html 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).
- rcthompson 15y agoHow would you support a generator that reads lines from a file, or something else that depends on some volatile external state?
- gaius 15y agoFrom 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/ http://entrian.com/goto/. The goto in this recipe is about 60x faster