This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python interpreter works abnormally after interrupting logging.config.fileConfig()
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: xxm
Priority: normal Keywords:

Created on 2021-03-30 04:34 by xxm, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg389788 - (view) Author: Xinmeng Xia (xxm) Date: 2021-03-30 04:34
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
History
Date User Action Args
2022-04-11 14:59:43adminsetgithub: 87829
2021-03-30 04:34:43xxmcreate