https://github.com/paultag/byteme
https://github.com/paultag/byteme
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paultag/byteme
- Owner: paultag
- Created: 2014-08-13T03:51:25.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-13T22:08:46.000Z (almost 11 years ago)
- Last Synced: 2025-01-25T18:30:50.874Z (6 months ago)
- Language: Python
- Size: 139 KB
- Stars: 1
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.