On 3/21/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > BTW, was it intentional that dicts can't be compared via ">" and "<" > anymore?
Yes. In old Python it made sense since all objects were supposed to be orderable *somehow* (in the truly distant past, comparisons weren't even allowed to raise exceptions!). In Py3k that assumption has been dropped. The ordering for dicts is not particularly useful, hard to explain, and hard to compute. On the other hand, equality testing is straightforward. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
