On Mar 21, 11:07 am, Jon Ribbens <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, Stargaming wrote:
> > from sys import version_info
> > if version_info[0] < 2 or version_info[1] < 4:
> > raise RuntimeError("You need at least python2.4 to run this script")
>
> That'll fail when the major version number is increased (i.e. Python 3.0).
>
> You want:
>
> if sys.hexversion < 0x020400f0:
> ... error ...
Yes, it was intended to be and 'and' instead of an 'or'.
--
http://mail.python.org/mailman/listinfo/python-list