Author smurfix
Recipients smurfix
Date 2008-05-07.20:25:56
SpamBayes Score 0.000216097
Marked as misclassified No
Message-id <1210191958.85.0.412869826908.issue2786@psf.upfronthosting.co.za>
In-reply-to
Content
Consider this simple error:

>>> class foo(object):
...   def __init__(self,bar):
...    pass
... 
>>> foo()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__() takes exactly 2 positional arguments (1 given)
>>> 

The problem is that if that "foo" call is through a variable (or
anything else that obscures which class I'm actually calling) there's no
good way to figure this from the traceback.

The last line should read

   TypeError: foo.__init__() takes exactly 2 positional arguments (1 given)

or similar.
History
Date User Action Args
2008-05-07 20:25:59smurfixsetspambayes_score: 0.000216097 -> 0.000216097
recipients: + smurfix
2008-05-07 20:25:58smurfixsetspambayes_score: 0.000216097 -> 0.000216097
messageid: <1210191958.85.0.412869826908.issue2786@psf.upfronthosting.co.za>
2008-05-07 20:25:57smurfixlinkissue2786 messages
2008-05-07 20:25:56smurfixcreate