Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Description
Problem
Currently matplotlib only exposes__version__. For quick version checks, exposing either aversion_info tuple (which can be compared with other tuples) or aLooseVersion instance (which can be properly compared with other strings) would be a small usability improvement.
(In practice I guess boring string comparisons will work just fine until we hit mpl 3.10 or 4.10 which is unlikely to happen soon, but that feels quite dirty :))
Proposed Solution
I guess I slightly preferLooseVersion, but exposing just aversion_info tuple is much more common in other packages (and perhaps simpler to understand). The hardest(?) part is probably just bikeshedding this point :-)
Additional context and prior art
version_info is a pretty common thing (citation needed).