-
-
Notifications
You must be signed in to change notification settings - Fork 37k
Add structured version info for readline #157485
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
readlineexposes the version of the readline library only under private names:_READLINE_VERSION(RL_READLINE_VERSION, an int like0x0803),_READLINE_RUNTIME_VERSION(rl_readline_version, an int) and_READLINE_LIBRARY_VERSION(rl_library_version, a string like'8.3'), added for tests.Add
readline.READLINE_VERSION_INFOfor the build-time version andreadline.readline_version_infofor the runtime version, named tuples with major and minor fields (readline has no third component), andreadline.readline_versionfor the runtime version string. The private names are kept for backward compatibility.With the libedit backend (
readline.backend == 'editline', i.e. the module was built against libedit's readline emulation), these describe the emulated readline API (4.2,'EditLine wrapper'), not libedit itself, which has no meaningful version API.Linked PRs