A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-March/109495.html below:

[Python-Dev] Module version variable

[Python-Dev] Module version variable [Python-Dev] Module version variableGreg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 19 03:28:52 CET 2011
Tres Seaver wrote:

> I'm not even sure why you would want __version__ in 99% of modules:  in
> the ordinary cases, a module's version should be either the Python
> version (for a module shipped in the stdlib), or the release of the
> distribution which shipped it.

It's useful to be able to find out the version of a module
you're using at run time so you can cope with API changes.

I had a case just recently where the behaviour of something
in pywin32 changed between one release and the next. I looked
for an attribute called 'version' or something similar to
test, but couldn't find anything.

+1 on having a standard place to look for version info.

-- 
Greg
More information about the Python-Dev mailing list

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