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).)
Showing
Please register or sign in to comment
missing key. (Also added a guard to SyntaxError__str__ to prevent calling PyString_Check(NULL).)