[ZCM] [ZC] 1332/ 1 Request "Catalog needs to wean itself off of BTrees Length as __len__ for HEAD"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Sat May 15 17:46:48 EDT 2004


Issue #1332 Update (Request) "Catalog needs to wean itself off of BTrees Length as __len__ for HEAD"
 Status Pending, Zope/bug critical
To followup, visit:
  http://zope.org/Collectors/Zope/1332

==============================================================
= Request - Entry #1 by mcdonc on May 15, 2004 5:46 pm

The Catalog uses a BTrees Length object as it's instance's __len__, but this no longer works as expected on the HEAD when the Catalog is a new-style class (as per BTrees Length module docs):

    It is tempting to to assign length objects to __len__ attributes
    to provide instance-specific __len__ methods. However, this no
    longer works as expected, because new-style classes cache
    class-defined slot methods (like __len__) in C type slots.  Thus,
    instance-define slot fillers are ignores.

==============================================================




More information about the Zope-Collector-Monitor mailing list