-
-
Notifications
You must be signed in to change notification settings - Fork 37k
Add structured version info for decimal #157475
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
Feature or enhancement
decimal.__libmpdec_version__(frommpd_version()) is the only information about the libmpdec library, and it only describes the library loaded at runtime. The version of the library that the module was built against is not exposed, although it can differ now that only a system libmpdec is used.libmpdec provides
MPD_VERSION,MPD_MAJOR_VERSION,MPD_MINOR_VERSIONandMPD_MICRO_VERSIONat compile time, andmpd_version()at runtime.Add
decimal.LIBMPDEC_VERSIONanddecimal.LIBMPDEC_VERSION_INFOfor the build-time version,decimal.libmpdec_versionas an alias of__libmpdec_version__, anddecimal.libmpdec_version_infofor the runtime version.These names are specific to the C implementation and are not added to
_pydecimal; the test which checks that both implementations expose the same names has to exclude them.Linked PRs