Bytecode changes in 3.14 are not documented in `dis` module docs
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Documentation
The module documentation for dis normally contains documentation for all non-specialized bytecode instructions.
However, many of the new bytecode instructions added in 3.14 (BUILD_INTERPOLATION, NOT_TAKEN, etc) are missing from the 3.14 module docs. Some changes to existing instructions like CALL_FUNCTION_EX are also undocumented.
- BUILD_TEMPLATE
- BUILD_INTERPOLATION
- NOT_TAKEN
- POP_ITER
- CALL_FUNCTION_EX (changed)
- Remove BINARY_SUBSCR
Based on pycore_magic_number.h, it appears all changes after Python 3.14a2 with magic number 3609 are undocumented. Changes before this, like the addition of LOAD_SMALL_INT are correctly documented.
Linked PRs
- gh-135478
- gh-135803
- gh-139399
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 Python 3.14 的 dis 模組文件開始,將其中的位元組碼指令項目與 Include/internal/pycore_magic_number.h 進行比較,重點關注 magic number 3609 之後的變更。在進行修改之前,先檢閱已連結的 PR,尤其是關於 BUILD_INTERPOLATION、NOT_TAKEN、POP_ITER、CALL_FUNCTION_EX 以及移除 BINARY_SUBSCR 的 PR。文件中記錄的指令集和變更後的行為與 Python 3.14 一致,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 2/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100