[Python-Dev] RE: [Idle-dev] Forward progress with full backward compatibility

Barry A. Warsaw bwarsaw@cnri.reston.va.us
Wed, 12 Apr 2000 14:56:32 -0400 (EDT)


>>>>> "GL" == Glyph Lefkowitz <glyph@twistedmatrix.com> writes:

    GL> As long as we're talking about versioning issues, could we
    GL> perhaps introduce a slightly more robust introspective
    GL> facility than

    GL> 	assert(sys.version[:3])=='1.5'

sys.hexversion?

Python 1.6a2 (#26, Apr 12 2000, 13:53:57)  [GCC 2.8.1] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import sys
>>> sys.hexversion
17170593
>>> hex(sys.hexversion)
'0x10600a1'