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 xdegaye
Recipients jneb, r.david.murray, xdegaye
Date 2014-03-18.16:40:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> There is at least one other place (do_break) where this same problem could crop up.

Also in do_retval. And the exception is silently ignored in do_p and do_pp when repr() fails, which is not correct.

A solution could be to have a message_safe method to be used in such cases. For example, substitute in do_args:

    self.message('%s = %r' % (name, dict[name]))
    self.message_safe('%s = %r', name, dict[name])

def message_safe(self, fmt, *args):
        print(fmt % args, file=self.stdout)
    except Exception:
        exc_info = sys.exc_info()[:2]
Date User Action Args
2014-03-18 16:40:04xdegayesetrecipients: + xdegaye, jneb, r.david.murray
2014-03-18 16:40:04xdegayesetmessageid: <>
2014-03-18 16:40:04xdegayelinkissue20853 messages
2014-03-18 16:40:04xdegayecreate