Skip to content

Custom error messages when print & exec are used as statements #65868

@ncoghlan

Description

@ncoghlan
BPO 21669
Nosy @gvanrossum, @ncoghlan, @glyph, @alex
Files
  • custom_builtin_syntax_errors.diff: Custom syntax errors for print and exec used as statements
  • issue21669_custom_error_messages.diff: Simpler approach based on a heuristic in SyntaxError.init
  • issue21669_custom_error_messages_v2.diff: Also handle the compound statement cases
  • 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 2014-06-16.09:52:14.130>
    created_at = <Date 2014-06-05.15:07:19.025>
    labels = ['type-feature']
    title = 'Custom error messages when print & exec are used as statements'
    updated_at = <Date 2014-08-22.11:00:35.507>
    user = 'https://github.com/ncoghlan'

    bugs.python.org fields:

    activity = <Date 2014-08-22.11:00:35.507>
    actor = 'ncoghlan'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-06-16.09:52:14.130>
    closer = 'ncoghlan'
    components = []
    creation = <Date 2014-06-05.15:07:19.025>
    creator = 'ncoghlan'
    dependencies = []
    files = ['35491', '35497', '35510']
    hgrepos = []
    issue_num = 21669
    keywords = ['patch']
    message_count = 13.0
    messages = ['219816', '219822', '219854', '219855', '219880', '219890', '219892', '219932', '220048', '220077', '220707', '220708', '225657']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'ncoghlan', 'glyph', 'alex', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue21669'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      type-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions