Skip to content

open(): remove 'U' mode, deprecated since Python 3.3 #81511

@vstinner

Description

@vstinner
BPO 37330
Nosy @pitrou, @vstinner, @merwok, @ambv, @serhiy-storchaka, @asottile, @miss-islington, @abartlet
PRs
  • bpo-37330: open() no longer accept 'U' in file mode #14204
  • bpo-37330: open() no longer accept 'U' in file mode #16959
  • [3.8] bpo-37330: open(): "U" mode is removed in Python 3.9 #16972
  • [3.7] bpo-37330: open(): "U" mode is removed in Python 3.9 (GH-16972) #16982
  • bpo-39674: Revert "bpo-37330: open() no longer accept 'U' in file mode (GH-16959)" #18767
  • bpo-37330: open() no longer accept 'U' in file mode #28118
  • 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 2021-09-02.11:16:54.115>
    created_at = <Date 2019-06-18.15:48:25.669>
    labels = ['library', '3.11']
    title = "open(): remove 'U' mode, deprecated since Python 3.3"
    updated_at = <Date 2022-01-05.17:46:12.863>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2022-01-05.17:46:12.863>
    actor = 'eric.araujo'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-02.11:16:54.115>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2019-06-18.15:48:25.669>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37330
    keywords = ['patch']
    message_count = 25.0
    messages = ['345991', '345995', '346219', '348007', '355479', '355543', '355544', '355573', '355633', '355635', '355636', '362362', '363194', '363211', '363247', '363320', '363321', '363344', '363366', '400884', '400888', '400889', '400914', '400917', '409791']
    nosy_count = 8.0
    nosy_names = ['pitrou', 'vstinner', 'eric.araujo', 'lukasz.langa', 'serhiy.storchaka', 'Anthony Sottile', 'miss-islington', 'abartlet']
    pr_nums = ['14204', '16959', '16972', '16982', '18767', '28118']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue37330'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesstdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions