Array.array Type Codes are not platforminvariant.
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 558
描述
The platform-specific type codes interpretations for array.array make it more complex to write python code that contains known type codes and data bytes and will run reliably on all platforms. In particular, the 'l' and 'L' codes are 4 bytes on Windows, but 8 bytes on macOS. The 'i' and 'I' codes seem to be 4 in both cases, but that is a convention, not a requirement. There should be 4-byte and 8-byte integer types that guarantee that size regardless of platform---perhaps '4' and '8' for signed, '5' and '9' for unsigned. (I haven't tested other type codes.) The documentation should be updated in the meantime.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,追蹤 array.array 的型別代碼在不同平台上的行為,並檢視相關文件。判斷哪些型別代碼保證可以在不破壞現有慣例的情況下實現;完成的標準是受支援的代碼具有一致記錄的大小,且文件解釋平台差異或新的保證。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- data
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100