[New-bugs-announce] [issue20853] pdb "args" crashes when an arg is not printable

Jurjen N.E. Bos report at bugs.python.org
Wed Mar 5 11:45:57 CET 2014


New submission from Jurjen N.E. Bos:

The "args" command in pdb crashes when an argument cannot be printed.
Fortunately, this is easy to fix.

For version 3.3.3:
In function Pdb.do_args (lib/pdb.py, line 1120)
Change line 1131
  self.message('%s = %r' % (name, dict[name]))
to
  try: r = repr(dict[name])
  except: r = "(Cannot print object)"
  self.message('%s = %s' % (name, r))

----------
components: Library (Lib)
messages: 212759
nosy: jneb
priority: normal
severity: normal
status: open
title: pdb "args" crashes when an arg is not printable
type: enhancement
versions: Python 2.7, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20853>
_______________________________________


More information about the New-bugs-announce mailing list