[issue12273] Change ast.__version__ calculation to provide consistent ordering

Benjamin Peterson report at bugs.python.org
Tue Jun 7 19:00:35 CEST 2011


Benjamin Peterson <benjamin at python.org> added the comment:

I propose we leave ast.__version__ alone. Using ast.__version__ at all should be a very advanced usecase. Generally, you should just be able to look at sys.version_info. We could document this rather than duplicating sys.version_info in ast.__version__. I think ast.__version__ is mostly useful for things like:

print("Running with Python {} and AST {}".format(sys.mercurial[2], ast.__version__)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12273>
_______________________________________


More information about the Python-bugs-list mailing list