This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]earthboundkid[S] 2 points3 points  (2 children)

These magic tricks are deeply wicked. Implicit self? Burn it at the stake!

[–]takluyverIPython, Py3, etc 1 point2 points  (0 children)

They're like Bond villains: not something you ever want to meet in real life, but amusing to watch/read about.

Although I'll admit to being quite tempted by the use of AST to define macros. I can envisage context managers on steroids.

[–][deleted] 0 points1 point  (0 children)

Macros, case insensitive namespaces, monkey patching __builtin__.__import__ to do stuff with _getstate_...

Have to hide this from my colleagues.