2 ms·
Along similar lines, there's this nifty hack from a couple years ago which (ab)uses three different low-level interpreter tricks to get Ruby-ish anonymous block
by kiwidrew 14y ago
Along similar lines, there's this nifty hack from a couple years ago which (ab)uses three different low-level interpreter tricks to get Ruby-ish anonymous blocks in CPython:
http://code.google.com/p/ouspg/wiki/AnonymousBlocksInPython http://code.google.com/p/ouspg/wiki/AnonymousBlocksInPython