Skip to content

gh-157480: Add structured version info for dbm.ndbm - #157484

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:ndbm-version-info
Open

serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:ndbm-version-info

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Add constants which provide information about the version of the underlying library in use: GDBM_VERSION_INFO, gdbm_version_info and gdbm_version if it is GDBM, or BDB_VERSION, bdb_version, BDB_VERSION_INFO and bdb_version_info if it is Berkeley DB.

dbm.ndbm.library is now 'ndbm' instead of 'GNU gdbm' for a classic NDBM library.

configure now links _dbm with libgdbm when it is built with GDBM's compatibility interface, since the version information lives there and not in libgdbm_compat.

Tested with GDBM (compat interface and gdbm's ndbm.h) and Berkeley DB 5.3 on Linux, a classic NDBM library on FreeBSD, and Berkeley DB 5.3 on OpenIndiana.

Add constants which provide information about the version of the
underlying library in use: GDBM_VERSION_INFO, gdbm_version_info and
gdbm_version if it is GDBM, or BDB_VERSION, bdb_version,
BDB_VERSION_INFO and bdb_version_info if it is Berkeley DB.

dbm.ndbm.library is now 'ndbm' instead of 'GNU gdbm' for a classic
NDBM library.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34547155 | 📁 Comparing 543a6b7 against main (f815f74)

  🔍 Preview build  

3 files changed
± library/dbm.html
± whatsnew/3.16.html
± whatsnew/changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant