News for hackers. Stuff that matters.
Re:Code blocks in Python by Goladus on Friday April 20, 2012 @11:12AM (#3868208)
I understand anonymous code blocks is something that python doesn't do natively and other languages can do. What I don't understand is why it's worth the bother, given the hoops one must jump through to get it to work in Python specifically (new operators, keywords, and evaluating string literals as code).

If you really need new control structures, Python syntax isn't all that hard to hack.

Re:Code blocks in Python by mtomassoli on Friday April 20, 2012 @12:05PM (#3868459)
No string literals are evaluated as code. Everything is rewritten and then evaluated and executed at full speed.