[zope2-tracker] [Bug 597594] Re: Optimise maybeWarnDeprecated

Hanno Schlichting hanno at hannosch.eu
Wed Jun 23 06:55:33 EDT 2010


Sounds good to me. Maybe adding a first path for checking direct types
without subtypes could help as well, something like:

ob_type = type(ob)
if ob_type in deprecatedManageAddDeleteClasses:
    return

for cls in deprecatedManageAddDeleteClasses:
    if issubclass(ob_type, cls):
        return

-- 
Optimise maybeWarnDeprecated
https://bugs.launchpad.net/bugs/597594
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list