Skip to content

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

Description

@vstinner
BPO37330
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=Noneclosed_at=<Date2021-09-02.11:16:54.115>created_at=<Date2019-06-18.15:48:25.669>labels= ['library', '3.11']
    title="open(): remove 'U' mode, deprecated since Python 3.3"updated_at=<Date2022-01-05.17:46:12.863>user='https://github.com/vstinner'

    bugs.python.org fields:

    activity=<Date2022-01-05.17:46:12.863>actor='eric.araujo'assignee='none'closed=Trueclosed_date=<Date2021-09-02.11:16:54.115>closer='vstinner'components= ['Library (Lib)']
    creation=<Date2019-06-18.15:48:25.669>creator='vstinner'dependencies= []
    files= []
    hgrepos= []
    issue_num=37330keywords= ['patch']
    message_count=25.0messages= ['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.0nosy_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=Nonetype=Noneurl='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