]> granicus.if.org Git - python/commit
Issue #18408: PyObject_Str(), PyObject_Repr() and type_call() now fail with an
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Jul 2013 23:49:30 +0000 (01:49 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Jul 2013 23:49:30 +0000 (01:49 +0200)
commit8e4783273709df286fb6a83506ead4df8483a695
tree007d4eca024d94eed5443aac681da95e5c5e7feb
parent4abda5d5b08f5ed09f4c72e7ba9726f89aaf8780
Issue #18408: PyObject_Str(), PyObject_Repr() and type_call() now fail with an
assertion error if they are called with an exception set (PyErr_Occurred()).

As PyEval_EvalFrameEx(), they may clear the current exception and so the caller
looses its exception.
Objects/object.c
Objects/typeobject.c