From: Jonathan B. <jbr...@ea...> - 2005-02-18 19:03:01
|
On Fri, 2005-02-18 at 08:44 -0600, Isaac W Hanson wrote: > < 1e11, 0, 0 > isn't valid Python syntax by itself (although somewhat perversely, "( vector < 1e11, 0, 0 > vector )" is). > > > Your last statement confuses me. Isn't "( vector < 1e11, 0, 0 > vector > )" a tuple containing an expression (vector is-less-than 1e11), an > integer and another expression (zero is-greater-than vector)? Perhaps I > missed something? > > - Isaac Yes, that's right. The __lt__ calls are evaluated right away, so the result of the expression is a tuple "(False, 0, False)". I was only pointing out that it was syntacticly valid, not necessarily useful. -Jonathan |