Message389788
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 |
|
Date |
User |
Action |
Args |
2021-03-30 04:34:43 | xxm | set | recipients:
+ xxm |
2021-03-30 04:34:43 | xxm | set | messageid: <1617078883.29.0.318397860885.issue43663@roundup.psfhosted.org> |
2021-03-30 04:34:43 | xxm | link | issue43663 messages |
2021-03-30 04:34:43 | xxm | create | |
|