python / python/cpython

Add structured version info for dbm.ndbm

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

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

3.16 extension-modules type-feature
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Feature or enhancement

dbm.ndbm can be built with GDBM's compatibility interface, with Berkeley DB, or with a classic NDBM library, and only exposes library, the name of the implementation. No version information is available, and library is 'GNU gdbm' even for a classic NDBM library, because the USE_NDBM build assumes GDBM.

The library used by dbm.ndbm may differ from the one used by dbm.gnu (different builds of GDBM, or Berkeley DB), so dbm.ndbm needs its own constants, named after the library it was built with:

  • if library is 'GNU gdbm': GDBM_VERSION_INFO, gdbm_version_info and gdbm_version, as in dbm.gnu (gh-157478).
  • if library is 'Berkeley DB': DB_VERSION and DB_VERSION_INFO for the build-time version (DB_VERSION_STRING, DB_VERSION_MAJOR/MINOR/PATCH), db_version and db_version_info for the runtime version (db_version()).
  • for a classic NDBM library there is no version information; library should be 'ndbm'.
Linked PRs
  • gh-157484

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

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

はじめの一歩

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

調査の方向性

dbm.ndbm の実装から始め、gh-157478 で参照されているように、その公開するライブラリ情報を dbm.gnu と比較してください。GNU gdbm と Berkeley DB のビルド時および実行時のバージョン要件を確認し、classic NDBM がバージョン情報を報告せず、ndbm として自身を識別することを検証してください。gh-157484 は、すでに作業が進行中であることを示しています。

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

評価

技術スタック
python
領域
databases
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

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

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