• Peter Eisentraut's avatar
    Improved printing of Python exceptions in PL/Python · 44e03742
    Peter Eisentraut authored
    Mimic the Python interpreter's own logic for printing exceptions instead
    of just using the straight str() call, so that
    you get
    
        plpy.SPIError
    
    instead of
    
        <class 'plpy.SPIError'>
    
    and for built-in exceptions merely
    
        UnicodeEncodeError
    
    Besides looking better this cuts down on the endless version differences
    in the regression test expected files.
    44e03742
plpython_unicode_3.out 1.94 KB