Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python interpreter works abnormally after interrupting logging.config.fileConfig() #87829

Closed
xxm mannequin opened this issue Mar 30, 2021 · 2 comments
Closed

Python interpreter works abnormally after interrupting logging.config.fileConfig() #87829

xxm mannequin opened this issue Mar 30, 2021 · 2 comments
Labels
3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@xxm
Copy link
Mannequin

xxm mannequin commented Mar 30, 2021

BPO 43663

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2021-03-30.04:34:43.269>
labels = ['type-bug', 'library', '3.9']
title = 'Python interpreter works abnormally after interrupting logging.config.fileConfig()'
updated_at = <Date 2021-03-30.04:34:43.269>
user = 'https://bugs.python.org/xxm'

bugs.python.org fields:

activity = <Date 2021-03-30.04:34:43.269>
actor = 'xxm'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-03-30.04:34:43.269>
creator = 'xxm'
dependencies = []
files = []
hgrepos = []
issue_num = 43663
keywords = []
message_count = 1.0
messages = ['389788']
nosy_count = 1.0
nosy_names = ['xxm']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue43663'
versions = ['Python 3.9']

@xxm
Copy link
Mannequin Author

xxm mannequin commented Mar 30, 2021

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

@xxm xxm mannequin added 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Mar 30, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@vsajip
Copy link
Member

vsajip commented Aug 26, 2022

You're passing an invalid value for the first argument to fileConfig().

@vsajip vsajip closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
Development

No branches or pull requests

1 participant