Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paultag/byteme


https://github.com/paultag/byteme

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

Python TCO
----------

An implementation of tail-call optimization in Python, by @lohmataja, @paultag, and @akaptur.

The `make_tail_recusive` decorator replaces the code object of the function that it decorates. The original bytecode is modified to remove `CALL_FUNCTION` bytes and replace them with jumps to the top of the bytecode.