• Francis Herne's avatar
    Parser: Normalize exception before reading values · 836545d1
    Francis Herne authored
    The Python C-API is weird here. By calling PyErr_NormalizeException,
     we get an instance of SyntaxError (or its subclass IndentationError)
     as the value instead of a plain tuple, which makes things clearer.
    
    Another effect is that we get the "Missing parentheses in call
     to 'print'" message when relevant instead of just "invalid syntax".
    836545d1
astbuilder.cpp 12.6 KB