[New-bugs-announce] [issue43663] Python interpreter works abnormally after interrupting logging.config.fileConfig()
Xinmeng Xia
report at bugs.python.org
Tue Mar 30 00:34:43 EDT 2021
New submission from Xinmeng Xia <xiaxm at 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 <report at bugs.python.org>
<https://bugs.python.org/issue43663>
_______________________________________
More information about the New-bugs-announce
mailing list