Files
pyscript/docs/reference/API/version_info.md
Fábio Rosado 8b7fb89c68 Update docs examples so they don't use deprecated features, styling tweaks (#982)
* Deprecate pyscript output attribute

* Update code blocks so they work

* Small tweaks to styling and use html to warning

* Fix broken test from bad conflict resolution

* lowercase pyodide
2022-12-06 14:36:17 +00:00

1.6 KiB

version_info

PyScript.version_info is a namedtuple representing the current version of PyScript. It can be used to compare whether current version precedes or follows a desired version. For a human-readable version of the same info, see __version__

>>> pyscript.version_info
version_info(year=2023, month=2, minor=1, releaselevel='dev')

Version Fields

parameter CalVer equivalent field example value description
year Full year (YYYY) 2023 The year of the release; when printed or represented as a string, always written with 4 digits
month Short Month (MM) 2 The month of the release; when printed or represented as a string, written with 1 or 2 digits as necessary
minor 1 The incremental number of the release for this month; when printed or represented as a string, written with 1 or two digits as necessary
releaselevel 'dev' A string representing the qualifications of this build