making python 2.3 not complain about generator expressions?

Andrew Bennetts andrew-pythonlist at puzzling.org
Tue Jul 13 02:16:39 EDT 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