This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jneb
Recipients jneb, r.david.murray
Date 2014-03-12.08:16:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Oops. Here the correct example:
>>> class foo:
...   def __init__(self):
... = "hello"
...   def __repr__(self): return
>>> pdb.runcall(foo)
> <stdin>(3)__init__()
(Pdb) a
Traceback (most recent call last):
  File ".\", line 1132, in do_args
    self.message('%s = %r' % (name, dict[name]))
  File "<stdin>", line 4, in __repr__
AttributeError: type object 'foo' has no attribute 'bar'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".\", line 1580, in runcall
    return Pdb().runcall(*args, **kwds)
  File "C:\Python33\lib\", line 439, in runcall
    res = func(*args, **kwds)
  File "<stdin>", line 3, in __init__
  File "<stdin>", line 3, in __init__
  File "C:\Python33\lib\", line 47, in trace_dispatch
    return self.dispatch_line(frame)
  File "C:\Python33\lib\", line 65, in dispatch_line
  File ".\", line 266, in user_line
    self.interaction(frame, None)
  File ".\", line 345, in interaction
  File ".\", line 318, in _cmdloop
  File "C:\Python33\lib\", line 138, in cmdloop
    stop = self.onecmd(line)
  File ".\", line 411, in onecmd
    return cmd.Cmd.onecmd(self, line)
  File "C:\Python33\lib\", line 217, in onecmd
    return func(arg)
  File ".\", line 1134, in do_args
    self.message('%s = *** repr failed: %s ***' % (name,))
TypeError: not enough arguments for format string

At least, I expect pdb to not crash, but a clearer error (as in the patch) is nice to have.
Date User Action Args
2014-03-12 08:16:21jnebsetrecipients: + jneb, r.david.murray
2014-03-12 08:16:21jnebsetmessageid: <>
2014-03-12 08:16:21jneblinkissue20853 messages
2014-03-12 08:16:21jnebcreate