Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python module to modify bytecode

Project Description

bytecode is a Python module to modify bytecode.

The API is unstable. The project is closer to a proof-of-concept (PoC).

A code object is made of blocks and a block is a list of instructions. An instruction has 3 main attributes: lineno, name, arg. Jumps use labels to blocks, each block object has an unique label.

It’s possible to get a flat code with only one block and without labels: use Code.disassemble(code, use_labels=False).

bytecode 0.0 has been written to reimplement the CPython 3.6 peephole optimizer in pure Python. This version only supports Python 3.6.

Homepage: https://github.com/haypo/bytecode

ChangeLog

  • 2016-02-23: Release 0.0
    • First public release

Release History

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

This version
History Node

0.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
bytecode-0.0-py3-none-any.whl
(6.0 kB) Copy SHA256 Hash SHA256
Wheel 3.4 Feb 23, 2016
bytecode-0.0.tar.gz
(7.7 kB) Copy SHA256 Hash SHA256
Source None Feb 23, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting