Skip to content

csv: Confusing error message when giving invalid quotechar in initializing dialect #64227

Closed
@vajrasky

Description

@vajrasky
mannequin
BPO 20028
Nosy @bitdancer, @serhiy-storchaka, @vajrasky, @corona10, @miss-islington, @iritkatriel
PRs
  • bpo-20028: Improve error message of csv.Dialect when initializing #28705
  • [3.10] bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705) #28830
  • [3.9] bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705) #28831
  • bpo-20028: Keep original exception when PyUnicode_GetLength return -1 #28832
  • bpo-20028: Empty escapechar/quotechar is not allowed for csv.Dialect #28833
  • [3.10] bpo-20028: Keep original exception when PyUnicode_GetLength re… #28834
  • [3.9] bpo-20028: Keep original exception when PyUnicode_GetLength ret… #28835
  • Files
  • fix_handling_invalid_quotechar.patch: For Python 3.3 and 3.4
  • fix_handling_invalid_quotechar_python27.patch: For Python 2.7
  • 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-10-11.11:09:03.163>
    created_at = <Date 2013-12-20.04:38:14.524>
    labels = ['easy', 'type-bug', '3.9', '3.10', '3.11', 'library']
    title = 'csv: Confusing error message when giving invalid quotechar in initializing dialect'
    updated_at = <Date 2021-10-11.11:09:03.163>
    user = 'https://github.com/vajrasky'

    bugs.python.org fields:

    activity = <Date 2021-10-11.11:09:03.163>
    actor = 'corona10'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-11.11:09:03.163>
    closer = 'corona10'
    components = ['Library (Lib)']
    creation = <Date 2013-12-20.04:38:14.524>
    creator = 'vajrasky'
    dependencies = []
    files = ['33226', '33227']
    hgrepos = []
    issue_num = 20028
    keywords = ['patch', 'easy']
    message_count = 11.0
    messages = ['206663', '206667', '206668', '401605', '403534', '403535', '403536', '403537', '403539', '403540', '403651']
    nosy_count = 6.0
    nosy_names = ['r.david.murray', 'serhiy.storchaka', 'vajrasky', 'corona10', 'miss-islington', 'iritkatriel']
    pr_nums = ['28705', '28830', '28831', '28832', '28833', '28834', '28835']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue20028'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9only security fixeseasystdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions