Skip to content

Should warnings.warn default to stacklevel=2? #88462

Open
@asottile

Description

@asottile
mannequin
BPO 44296
Nosy @asottile

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-06-02.23:55:20.255>
labels = ['type-bug', 'library', '3.11']
title = 'Should warnings.warn default to stacklevel=2?'
updated_at = <Date 2021-06-02.23:55:20.255>
user = 'https://github.com/asottile'

bugs.python.org fields:

activity = <Date 2021-06-02.23:55:20.255>
actor = 'Anthony Sottile'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-06-02.23:55:20.255>
creator = 'Anthony Sottile'
dependencies = []
files = []
hgrepos = []
issue_num = 44296
keywords = []
message_count = 1.0
messages = ['394960']
nosy_count = 1.0
nosy_names = ['Anthony Sottile']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue44296'
versions = ['Python 3.11']

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions