Re: compare classes and not class instances

2006-03-02 Thread [EMAIL PROTECTED]
Awesome! Perfect! Thanks Janto -- http://mail.python.org/mailman/listinfo/python-list

Re: compare classes and not class instances

2006-03-02 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I not only want to compare class *instances* but also the classes > themselves. Something like: > sorted([B, A]) => [A, B] > > My motivation for doing so is simply to sort classes based on their > names and not (as it seems is the default behaviour) on the order in >