[Zope-dev] Exception verbosity in CA
Christian Theune
ct at gocept.com
Wed Apr 16 03:24:12 EDT 2008
On Tue, Apr 15, 2008 at 02:07:58PM +0200, Malthe Borch wrote:
> 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.
+1
--
gocept gmbh & co. kg - forsterstrasse 29 - 06112 halle (saale) - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development
More information about the Zope-Dev
mailing list