why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread fat bold cyclop
I tired to google for comparison of tuple to list but i failed.

Could anyone explain it to me?

Best regards,
fat bold cyclop
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread fat bold cyclop
> Both are not equal, so the comparison returns an arbitrary result in Py2.
Thanks, Stefan. If I understand you correctly the comparison is not
valid.
But I wonder if there is any logic behind this (in 2.x).
Is it possible to predict result of this comparison?

Thanks again,
fbc
-- 
http://mail.python.org/mailman/listinfo/python-list