python version
Alex Martelli
aleax at aleax.it
Fri Sep 21 14:59:00 EDT 2001
More information about the Python-list mailing list
Fri Sep 21 14:59:00 EDT 2001
- Previous message (by thread): python version
- Next message (by thread): python version
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bob Roberts wrote: > How can a python program find out what version of python it is running? >>> import sys >>> print sys.version 2.2a3 (#1, Sep 11 2001, 23:11:58) [GCC 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)] >>> print sys.version_info (2, 2, 0, 'alpha', 3) >>> print sys.hexversion 33685667 >>> print hex(sys.hexversion) 0x20200a3 >>> Alex
- Previous message (by thread): python version
- Next message (by thread): python version
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list