STINNER Victor added the comment: __suppress_context__ is a member using T_BOOL type. T_BOOL expects the C type "char", whereas the field in the PyBaseExceptionObject is a C "int". Attached patch changes the type and should fix the issue.
The test fails because writing into the field uses: *(char*)field = value; Which does not work in big endian if the field is a pointer to an int. ---------- Added file: http://bugs.python.org/file26732/exception.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15597> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com