dictionary interface

Steve Holden steve at holdenweb.com
Wed Oct 5 06:54:24 EDT 2005


Antoon Pardon wrote:
> Op 2005-10-05, Steve Holden schreef <steve at holdenweb.com>:
[...]
> 
> Anyway, I have searched the source of the test for all testing
> with regards to < and after some browsing back and fore it seems
> it all boils down to the following two tests.
> 
>    self.assert_(not {} < {})
>    self.assert_(not {1: 2} < {1L: 2L})
> 

So there isn't much to do, then! That's good. Seems you can pretty much 
choose your own ordering.

It would seem sensible to test a third case, namely

     self.assert_(not {1L: 2L} < {1: 2})

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list