By accident I noticed that both csv
and re
modules of python standard library have their .__version__
attribute:
>>> import re, csv
>>> re.__version__
'2.2.1'
>>> csv.__version__
'1.0'
It surprises me as they are part of the standard library, so I would expect their version to be defined by sys.version
(and sys.version_info
).
I have noticed the values of the attributes are same for both Python 2.7.13 and 3.6.1, despite the modules have changed.
Are they just a kind of "code fossils" or are they somehow meaningful and programmers should pay attention to their values?
I can assume that the source version of the module on C did not change, only the source code of the python module has changed across different versions of python itself. Looking for source code in python repository can shed light into whole situation.
For example:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With