3 ms·
5 Years of Bad Ideas (With Python)
- kiwidrew 14y agoAlong 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