Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paultag/byteme
https://github.com/paultag/byteme
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/paultag/byteme
- Owner: paultag
- Created: 2014-08-13T03:51:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-13T22:08:46.000Z (over 10 years ago)
- Last Synced: 2024-10-14T19:21:23.666Z (3 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.