[ZODB-Dev] Issue trying to remove elements in OOTreeSet

Marius Gedminas marius at gedmin.as
Fri Sep 24 17:05:22 EDT 2010


On Fri, Sep 24, 2010 at 11:09:58AM -0400, Jim Fulton wrote:
> (I assume there isn't
> a default comparison in Python 3, although I haven't checked.)

For the record:

    Python 3.1.2 (r312:79147, Apr 15 2010, 12:35:07) 
    [GCC 4.4.3] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> object() == object()
    False
    >>> object() < object()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: unorderable types: object() < object()

Marius Gedminas
-- 
Fibers (sic, geddit?) are a Windows lightweight alternative to threads, which
combine the pleasure of the Win32 threading interface with the intellectual
opportunity afforded by the coroutine.
        -- Verity Stob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20100925/64ce06c1/attachment.bin 


More information about the ZODB-Dev mailing list