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:22:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I am not good at this. Sorry for the mess.
Here is a good example, and a good patch:
>>> class foo:
...   def __init__(self):
... = "hello"
...   def __repr__(self): return
>>> pdb.runcall(foo)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'pdb' is not defined
>>> import pdb
>>> pdb.runcall(foo)
> <stdin>(3)__init__()
(Pdb) a
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python33\lib\", line 1577, 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 "C:\Python33\lib\", line 266, in user_line
    self.interaction(frame, None)
  File "C:\Python33\lib\", line 345, in interaction
  File "C:\Python33\lib\", line 318, in _cmdloop
  File "C:\Python33\lib\", line 138, in cmdloop
    stop = self.onecmd(line)
  File "C:\Python33\lib\", line 411, in onecmd
    return cmd.Cmd.onecmd(self, line)
  File "C:\Python33\lib\", line 217, in onecmd
    return func(arg)
  File "C:\Python33\lib\", line 1131, in do_args
    self.message('%s = %r' % (name, dict[name]))
  File "<stdin>", line 4, in __repr__
AttributeError: type object 'foo' has no attribute 'bar'
Date User Action Args
2014-03-12 08:22:57jnebsetrecipients: + jneb, r.david.murray
2014-03-12 08:22:57jnebsetmessageid: <>
2014-03-12 08:22:57jneblinkissue20853 messages
2014-03-12 08:22:57jnebcreate