Skip to content

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

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:ndbm-version-info
Sep 29, 2026
Merged

serhiy-storchaka merged 2 commits 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

read-the-docs-community Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34828072 | 📁 Comparing 9cdaeca against main (f815f74)

  🔍 Preview build  

53 files changed · + 1 added · ± 52 modified

+ Added

± Modified

@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Sep 29, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) September 29, 2026 12:46
@serhiy-storchaka serhiy-storchaka removed the type-feature A feature request or enhancement label Sep 29, 2026
@serhiy-storchaka
serhiy-storchaka merged commit 89bfac6 into python:main Sep 29, 2026
58 of 60 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the ndbm-version-info branch September 29, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant