Greg Wilson wrote: > > Hi, folks. Is there a standard or usual way to provide version > information inside a Python module or class? Special tokens in > the doc string, a method like "getVersion"...? AFAIK, __version__ with a string value is in common usage both in modules and classes. BTW, while we're at it: with the growing number of dependencies between modules, packages and the Python lib version... how about creating a standard to enable versioning in module/package imports ? It would have to meet (at least) these requirements: * import of a specific version * alias of the unversioned name to the most recent version available Thoughts ? -- Marc-Andre Lemburg ______________________________________________________________________ Company: http://www.egenix.com/ Consulting: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4