Amaury Forgeot d'Arc added the comment: +1 for PyException_SetContext or similar. The C code should behave like a "finally: x.finalize()".
---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18488> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com