On Tue, Oct 6, 2009 at 4:47 PM, Wayne <sri...@gmail.com> wrote:
> > On Tue, Oct 6, 2009 at 9:46 AM, Steve Willoughby <st...@alchemy.com>wrote: > >> On Tue, Oct 06, 2009 at 09:42:04AM -0500, Wayne wrote: >> > On Tue, Oct 6, 2009 at 9:26 AM, Christian Witts <cwi...@compuscan.co.za >> >wrote: >> > if sys.version < '2.4': >> > sys.exit("Need at least Python 2.4") >> > >> > AFAIK the string comparison is reliable >> >> Not quite. What happens when you compare '2.4' and '2.10'? >> > > >>> '2.4' > '2.10' > True > That was his point, 2.4 should be a lesser version than 2.10, so it should not ask you to upgrade if you have 2.10, but this code will.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor