Skip to content

pathlib.Path.__enter__() should emit DeprecationWarning #90714

Closed
@barneygale

Description

@barneygale
BPO 46556
Nosy @brettcannon, @barneygale
PRs
  • bpo-46556: emit DeprecationWarning from pathlib.Path.__enter__() #30971
  • 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 2022-02-08.21:02:04.592>
    created_at = <Date 2022-01-27.23:07:21.767>
    labels = ['type-bug', 'library', '3.11']
    title = 'pathlib.Path.__enter__() should emit DeprecationWarning'
    updated_at = <Date 2022-02-08.21:02:04.592>
    user = 'https://github.com/barneygale'

    bugs.python.org fields:

    activity = <Date 2022-02-08.21:02:04.592>
    actor = 'brett.cannon'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-02-08.21:02:04.592>
    closer = 'brett.cannon'
    components = ['Library (Lib)']
    creation = <Date 2022-01-27.23:07:21.767>
    creator = 'barneygale'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46556
    keywords = ['patch']
    message_count = 2.0
    messages = ['411936', '412870']
    nosy_count = 2.0
    nosy_names = ['brett.cannon', 'barneygale']
    pr_nums = ['30971']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46556'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesstdlibPython modules in the Lib dirtopic-pathlibtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions