Skip to content

TextWrap's wrap method throws unhelpful error on bytes object #86090

Description

@PythonCoderAS
BPO 41924
Nosy @MojoVampire, @PythonCoderAS
PRs
  • bpo-41924: Add type check to prevent weird error #22534
  • Files
  • traceback.txt: Traceback
  • 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 2020-10-04.01:15:37.957>
    created_at = <Date 2020-10-04.00:54:49.662>
    labels = ['3.8', 'type-bug', 'library']
    title = "TextWrap's wrap method throws unhelpful error on bytes object"
    updated_at = <Date 2020-10-04.01:15:37.957>
    user = 'https://github.com/PythonCoderAS'

    bugs.python.org fields:

    activity = <Date 2020-10-04.01:15:37.957>
    actor = 'ThePokestarFan'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-10-04.01:15:37.957>
    closer = 'ThePokestarFan'
    components = ['Library (Lib)']
    creation = <Date 2020-10-04.00:54:49.662>
    creator = 'ThePokestarFan'
    dependencies = []
    files = ['49489']
    hgrepos = []
    issue_num = 41924
    keywords = ['patch']
    message_count = 3.0
    messages = ['377910', '377912', '377913']
    nosy_count = 2.0
    nosy_names = ['josh.r', 'ThePokestarFan']
    pr_nums = ['22534']
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41924'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions