Skip to content

byte string literals with invalid hex escape codes raise ValueError instead of SyntaxError #57192

@ned-deily

Description

@ned-deily
BPO 12983
Nosy @benjaminp, @ned-deily, @ezio-melotti, @serhiy-storchaka
Files
  • parse_strlit_error.patch
  • 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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2013-02-10.17:19:11.127>
    created_at = <Date 2011-09-14.22:51:36.301>
    labels = ['interpreter-core', 'type-bug']
    title = 'byte string literals with invalid hex escape codes raise ValueError instead of SyntaxError'
    updated_at = <Date 2013-02-10.17:19:11.126>
    user = 'https://github.com/ned-deily'

    bugs.python.org fields:

    activity = <Date 2013-02-10.17:19:11.126>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2013-02-10.17:19:11.127>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2011-09-14.22:51:36.301>
    creator = 'ned.deily'
    dependencies = []
    files = ['28745']
    hgrepos = []
    issue_num = 12983
    keywords = ['patch']
    message_count = 5.0
    messages = ['144059', '180054', '181431', '181812', '181815']
    nosy_count = 6.0
    nosy_names = ['benjamin.peterson', 'ned.deily', 'ezio.melotti', 'abacabadabacaba', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue12983'
    versions = ['Python 3.2', 'Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions