On Tue, Oct 6, 2009 at 4:47 PM, Wayne <[email protected]> wrote:

>
> On Tue, Oct 6, 2009 at 9:46 AM, Steve Willoughby <[email protected]>wrote:
>
>> On Tue, Oct 06, 2009 at 09:42:04AM -0500, Wayne wrote:
>> > On Tue, Oct 6, 2009 at 9:26 AM, Christian Witts <[email protected]
>> >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  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to