简体   繁体   中英

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?

Thanks a lot!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM