Skip to content

Codecs should raise precise UnicodeDecodeError or UnicodeEncodeError #85287

Closed
@pitrou

Description

@pitrou
BPO 41115
Nosy @malemburg, @doerwalter, @pitrou, @benjaminp, @ezio-melotti, @serhiy-storchaka, @srinivasreddy, @eamanu, @utkarsh261
PRs
  • gh-85287: Convert UnicodeError to UnicodeEncodeError| UnicodeDecodeError  #21165
  • bpo-41115: Modified src to raise rather Unicode{Encode, Decode}Error rather than plain UnicodeError #21170
  • 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 2020-06-25.12:49:30.420> labels = ['easy', 'type-bug', '3.8', '3.9', '3.7', 'library'] title = 'Codecs should raise precise UnicodeDecodeError or UnicodeEncodeError' updated_at = <Date 2020-06-26.16:59:17.544> user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2020-06-26.16:59:17.544> actor = 'utk' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = <Date 2020-06-25.12:49:30.420> creator = 'pitrou' dependencies = [] files = [] hgrepos = [] issue_num = 41115 keywords = ['patch', 'easy'] message_count = 6.0 messages = ['372367', '372368', '372369', '372373', '372431', '372433'] nosy_count = 9.0 nosy_names = ['lemburg', 'doerwalter', 'pitrou', 'benjamin.peterson', 'ezio.melotti', 'serhiy.storchaka', 'thatiparthy', 'eamanu', 'utk'] pr_nums = ['21165', '21170'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue41115' versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9only security fixeseasystdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      Status

      Done

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions