python / python/cpython

Marshal format version: Meaning of setting a larger-than-supported version?

オープン
#140,758 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

docs interpreter-core
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Documentation

Python 3.14 bumped the marshal format version to 5. Curious to find out what setting the version to 5 for earlier Python releases, I took a look at https://github.com/python/cpython/blob/main/Python/marshal.c and found that all version comparisons are [<>][=], meaning that it would be perfectly legal to set version=99 to always get the latest. Specifically, setting version=5 on Python 3.13 will also give the latest supported marshal format on that release, namely 4, without warning or error.

That seems a little funny.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、issue にリンクされている marshal のドキュメントを読み、Python/marshal.c のバージョン比較を調べます。呼び出し元がインタープリターのサポートするバージョンより新しいバージョンを指定した場合の意図された動作を判断し、その後、ドキュメントを更新するか issue の想定される解決方法を明確にして、実装に照らして文言を確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
documentation
issue の種類
ドキュメント
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。