On Jan 10, 2008, at 12:44 PM, Dieter Maurer wrote:

Jim Fulton wrote at 2008-1-7 16:04 -0500:
...
 "inspect.getmembers" and "inspect.classify_class_attrs"
 require that for each "name" in "dir(cls)" "getattr(cls, name)"
 does not raise an exception.

This fails for classes magically stuffed with a "__provides__"
descriptor.

It also fails for any descriptor that sometimes raises attribute
errors.  Someone should report this as an inspect bug.

I filed a bug report for "zope.interface"
and for "inspect" ("http://bugs.python.org/issue1785";)


Much thanks!

Jim

--
Jim Fulton
Zope Corporation


_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to