Guido van Rossum <gu...@python.org> added the comment:
With python built from main I get: /Users/guido/test_sys_exit_in_exception_handler.py:12: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() Got error, exiting Exception ignored in: <bound method BaseEventLoop.call_exception_handler of <_UnixSelectorEventLoop running=True closed=False debug=False>> Traceback (most recent call last): File "/Users/guido/cpython/Lib/asyncio/base_events.py", line 1749, in call_exception_handler self._exception_handler(self, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/guido/test_sys_exit_in_exception_handler.py", line 6, in handler sys.exit(42) ^^^^^^^^^^^^ SystemExit: 42 This is printed from write_unraisable_exc_file(). Earlier comments in this issue indicate that the exception is being raised from a finalizer (__del__ method). But how? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue25489> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com