-
-
Notifications
You must be signed in to change notification settings - Fork 37k
Add structured version info for dbm.gnu #157478
Copy link
Copy link
Closed
Labels
3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
Metadata
Metadata
Assignees
Labels
3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
Projects
- StatusShow more project fieldsDone
Feature or enhancement
_gdbm._GDBM_VERSION(a private plain tuple from theGDBM_VERSION_MAJOR,GDBM_VERSION_MINORandGDBM_VERSION_PATCHmacros, added in gh-78082 for tests) is the only information about the gdbm library, and it only describes the version the module was built against. The version of the library loaded at runtime is not exposed, although gdbm provides it asgdbm_version_number[]and as the release stringgdbm_version(a banner like'GDBM version 1.26. 30/07/2025', possibly with a build date).Add
dbm.gnu.GDBM_VERSION_INFOfor the build-time version,dbm.gnu.gdbm_version_infofor the runtime version (both named tuples), anddbm.gnu.gdbm_versionfor the release string.Linked PRs