You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 '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'.
Feature or enhancement
dbm.ndbmcan be built with GDBM's compatibility interface, with Berkeley DB, or with a classic NDBM library, and only exposeslibrary, the name of the implementation. No version information is available, andlibraryis'GNU gdbm'even for a classic NDBM library, because theUSE_NDBMbuild assumes GDBM.The library used by
dbm.ndbmmay differ from the one used bydbm.gnu(different builds of GDBM, or Berkeley DB), sodbm.ndbmneeds its own constants, named after the library it was built with:libraryis'GNU gdbm':GDBM_VERSION_INFO,gdbm_version_infoandgdbm_version, as indbm.gnu(Add structured version info for dbm.gnu #157478).libraryis'Berkeley DB':DB_VERSIONandDB_VERSION_INFOfor the build-time version (DB_VERSION_STRING,DB_VERSION_MAJOR/MINOR/PATCH),db_versionanddb_version_infofor the runtime version (db_version()).libraryshould be'ndbm'.Linked PRs