Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: > That's why I thought that calling PyErr_NormalizeException with the new > tuple is the simplest thing to do, becuase I guess that'll take care of > all fields automatically.
You could also call PyErr_NormalizeException at the beginning, and update the fields directly in the PySyntaxErrorObject structure. No need to deal with any tuple. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11441> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com