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.

Author xxm
Recipients xxm
Date 2021-03-30.04:34:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617078883.29.0.318397860885.issue43663@roundup.psfhosted.org>
In-reply-to
Content
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
2021-03-30 04:34:43xxmsetrecipients: + xxm
2021-03-30 04:34:43xxmsetmessageid: <1617078883.29.0.318397860885.issue43663@roundup.psfhosted.org>
2021-03-30 04:34:43xxmlinkissue43663 messages
2021-03-30 04:34:43xxmcreate