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

warnings should use a ContextVar to manage filters/registry #81785

Closed
graingert mannequin opened this issue Jul 16, 2019 · 4 comments
Closed

warnings should use a ContextVar to manage filters/registry #81785

graingert mannequin opened this issue Jul 16, 2019 · 4 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@graingert
Copy link
Mannequin

graingert mannequin commented Jul 16, 2019

BPO 37604
Nosy @gvanrossum, @graingert

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 = <Date 2020-09-16.19:41:24.989>
created_at = <Date 2019-07-16.13:24:57.641>
labels = ['type-bug', 'library']
title = 'warnings should use a ContextVar to manage filters/registry'
updated_at = <Date 2020-09-16.19:41:24.989>
user = 'https://github.com/graingert'

bugs.python.org fields:

activity = <Date 2020-09-16.19:41:24.989>
actor = 'gvanrossum'
assignee = 'none'
closed = True
closed_date = <Date 2020-09-16.19:41:24.989>
closer = 'gvanrossum'
components = ['Library (Lib)']
creation = <Date 2019-07-16.13:24:57.641>
creator = 'graingert'
dependencies = []
files = []
hgrepos = []
issue_num = 37604
keywords = []
message_count = 4.0
messages = ['348015', '348016', '357809', '377016']
nosy_count = 3.0
nosy_names = ['gvanrossum', 'graingert', 'Eric Wieser']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue37604'
versions = []

@graingert
Copy link
Mannequin Author

graingert mannequin commented Jul 16, 2019

this would allow warnings.catch_warnings to be threadsafe

@graingert
Copy link
Mannequin Author

graingert mannequin commented Jul 16, 2019

note that PEP-550 previously mentions catch_warnings as something that would benefit from some sort of Execution Context management

Context managers like decimal contexts, numpy.errstate, and warnings.catch_warnings.

@EricWieser
Copy link
Mannequin

EricWieser mannequin commented Dec 4, 2019

A relevant old issue is https://bugs.python.org/issue6647

@EricWieser EricWieser mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Dec 4, 2019
@gvanrossum
Copy link
Member

Closing for lack of activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant