Some motivation:

File ".../zope/interface/adapter.py", line 482, in queryMultiAdapter
        result = factory(*objects)
    TypeError: __init__() takes exactly 2 arguments (3 given)

Perhaps the need for introspection tools would not be so immediate if the exceptions were more informative; for instance, in the example above, why not print the repr of the factory having problems.

Or better, use the ``inspect`` module to show what the factory expects in terms of parameters and list the ``*objects`` passed to it.

\malthe

_______________________________________________
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