[XML-SIG] Python package name
Guido van Rossum
guido@beopen.com
Thu, 21 Sep 2000 13:59:22 -0500
> > Here's another half-baked idea about versions: perhaps packages could
> > have a __version__.py file?
>
> Why not __version__, that just contains the version number?
__version__.py has less of a chance of getting lost when moving or
copying files. It can be consulted by Python code by simply saying
import package
if package.__version__.version <= (1, 2, 3): ...
We may restrict the contents of __version__.py for the purpose of
parsing or evaluating by a version dependency checker.
--Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)