RepugNaNt [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

Wed 2011-12-07 15:45
RepugNaNt
LinkReply
[identity profile] ptc24.livejournal.comThu 2011-12-08 16:30
Again, vulnerable to stupid classes such as:

>>> class bar:
...   def __cmp__(self, other):
...     return 0


but as [livejournal.com profile] fanf says, if you do that, you deserve to lose.
Link Reply to this | Parent | Thread
[personal profile] sparrowsionThu 2011-12-08 17:49
If value can be a bar then I think the whole concept is an intractable problem. (Unless you know about bar and special case it, and given that the original issue was how to do this elegantly, that fails heavily.)
Link Reply to this | Parent
navigation
[ go | Previous Entry | Next Entry ]
[ add | to Memories ]