llllllllll/codetransformer
View on GitHub ↗ ★ 187 Python
Python code object transformers
4 mentions on Hacker News by 3 people: 0 stories, 4 comments · first 2015-03-02 · latest 2019-02-25
20082026
-
…a more abstract API. Here is a similar transformation with this library, which works with Python 3: https://github.com/llllllllll/codetransformer/blob/master/co...
comment by joejev · 2019-02-25 · in The CPython Bytecode Compiler Is Dumb -
For bytecode level transformations rather than AST level: https://github.com/llllllllll/codetransformer
comment by makmanalp · 2018-09-13 · in Bowler: Safe code refactoring for modern Python -
If you're interested in this sort of thing, you might also check out https://github.com/llllllllll/codetransformer , which is a general-purpose library for doing these sorts of shenanigans in an almost-sane way. (Disclaimer: I'm one of the…
comment by ssanderson11235 · 2015-09-21 · in Goto in Python -
…the decorated function. The author built his own library for the bytecode stuff, which lives here: https://github.com/llllllllll/codetransformer .
comment by ssanderson11235 · 2015-03-02 · in Show HN: Lazy evaluation in Python