BendEg
BendEg

Reputation: 21128

Get Python stdlib version, not interpreter version

Is there a kind of seperate version number for the python stdlib? I know that I can get the python interpreter version using:

import sys
sys.version

But is there something similar for the python stdlib? Or does the version number always match?

Upvotes: 1

Views: 84

Answers (1)

Alioth
Alioth

Reputation: 603

Historically the standard library is an imprescriptable part of every Python distribution. The latter has a version and it helps to distinguish old distributions from the recent ones. Hence, not obvious, but historically - the standard library has the same version as a whole Python distribution.

When you read something like 'batteries included' in Python - this means not the galvanic cells (surprisingly), but mostly its stdlib

Upvotes: 1

Related Questions