Development workflow¶
- Following Python’s development
- Changing Python
- Development cycle
- Adding to the stdlib
- Standard library extension modules
- Changing Python’s C API
- Changing CPython’s grammar
- Porting and platform support
- Adding a Bytecode Specialization
- Overview of Steps
- 1. Modify the Opcode Definition in
Python/bytecodes.c - 2. Add the Specializing Micro-Op (uop)
- 3. Define the Macro Instruction
- 4. Define the Cache Structure in
Include/internal/pycore_code.h - 5. Write the Specializing Function in
Python/specialize.c - 6. Update Operation Statistics in
Python/specialize.c - 7. Add Cache Layout in
Lib/opcode.py - 8. Bump the Magic Number in
Include/internal/pycore_magic_number.h - 9. Regenerate Code Files
- See Also