New submission from Xinmeng Xia <xi...@smail.nju.edu.cn>:
Python interpreter cannot work well and report errors after interrupting logging.config.fileConfig() Reproduce step: 1. type python3 in console 2. type import logging.config; logging.config.fileConfig({2,2,'sdf'},'') 3. ctrl C 4. type 1/0 ------------------------------------------------------------------------------- Python 3.9.2 (default, Mar 12 2021, 15:08:35) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 1/0 Traceback (most recent call last): File "<stdin>", line 1, in <module> ZeroDivisionError: division by zero >>> import logging.config >>> logging.config.fileConfig({2,2,'sdf'},'') ^C>>> 1/0 >>> -------------------------------------------------------------------------------- Expected result: 1/0 will return a ZeroDivisionError after interrupting " logging.config.fileConfig({2,2,'sdf'},'') " Actual result: Nothing output Python 3.9.2, Ubuntu 16.04 ---------- components: Library (Lib) messages: 389788 nosy: xxm priority: normal severity: normal status: open title: Python interpreter works abnormally after interrupting logging.config.fileConfig() type: behavior versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43663> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com