making python 2.3 not complain about generator expressions?

Andrew Bennetts andrew-pythonlist at puzzling.org
Tue Jul 13 08:16:39 CEST 2004


On Mon, Jul 12, 2004 at 11:35:53PM -0400, Dan Christensen wrote:
[...]
> 
> (By the way, what's the canonical way for a script to find out which
> version of python it is running in?)

See sys.version, sys.version_info and sys.hexversion.

-Andrew.




More information about the Python-list mailing list