31 Aug
2000
31 Aug
'00
12:47 p.m.
Paul F. Dubois writes:
What I meant was that I hadn't known that comparison of tuples was meaningful at all; evidently you are teaching me that the comparisons of tuples are lexographic in the sense that it compares the first entries and only proceeds to the next component if the first entries are equal, etc. Python is full of little surprises, almost always pleasant.
Yes. Just as interestingly, this has been there a long time. Guido must have used his time machine to know we would have this specific requirement for comparing version numbers, and generalized effectively to begin with. ;) -Fred -- Fred L. Drake, Jr. <fdrake at beopen.com> BeOpen PythonLabs Team Member