Skip to content

Codecs should raise precise UnicodeDecodeError or UnicodeEncodeError#85287

@pitrou

Description

@pitrou
BPO41115
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=Noneclosed_at=Nonecreated_at=<Date2020-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=<Date2020-06-26.16:59:17.544>user='https://github.com/pitrou'

    bugs.python.org fields:

    activity=<Date2020-06-26.16:59:17.544>actor='utk'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['Library (Lib)'] creation=<Date2020-06-25.12:49:30.420>creator='pitrou'dependencies= [] files= [] hgrepos= [] issue_num=41115keywords= ['patch', 'easy'] message_count=6.0messages= ['372367', '372368', '372369', '372373', '372431', '372433'] nosy_count=9.0nosy_names= ['lemburg', 'doerwalter', 'pitrou', 'benjamin.peterson', 'ezio.melotti', 'serhiy.storchaka', 'thatiparthy', 'eamanu', 'utk'] pr_nums= ['21165', '21170'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype='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.9 (EOL)end of lifeeasystdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      Status

      Done

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions