https://github.com/buckley-w-david/bytecode
Write python functions directly with bytecode
https://github.com/buckley-w-david/bytecode
bytecode python
Last synced: 7 months ago
JSON representation
Write python functions directly with bytecode
- Host: GitHub
- URL: https://github.com/buckley-w-david/bytecode
- Owner: buckley-w-david
- Created: 2022-08-20T02:03:42.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-22T04:52:21.000Z (about 3 years ago)
- Last Synced: 2025-01-28T02:12:27.252Z (8 months ago)
- Topics: bytecode, python
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bytecode
Write python functions directly with bytecode
```python
>>> import bytecode
>>> @bytecode.bytecode()
... def sum(a, b):
... LOAD_FAST, 0
... LOAD_FAST, 1
... BINARY_ADD
... RETURN_VALUE>>> sum(5, 6)
11
```