]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add a custom __str__ method to KeyError that applies repr() to the
authorGuido van Rossum <guido@python.org>
Tue, 3 Sep 2002 20:24:09 +0000 (20:24 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 3 Sep 2002 20:24:09 +0000 (20:24 +0000)
commit602d45194c94a2e60becfb8aac768367412960c6
tree68eb4eccb6f555a1cf7e387ff550547b0dc2516f
parent99dba27e9a671693710128c0cfb5ed6686cda79b
Add a custom __str__ method to KeyError that applies repr() to the
missing key.  (Also added a guard to SyntaxError__str__ to prevent
calling PyString_Check(NULL).)
Lib/test/output/test_exceptions
Python/exceptions.c