Skip to content

Convert warnings to SyntaxWarning in parser #72215

Closed

Description

@serhiy-storchaka
BPO 28028
Nosy @ncoghlan, @ericvsmith, @ned-deily, @vadmium, @serhiy-storchaka, @Vgr255

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 2017-10-23.12:58:50.126>
created_at = <Date 2016-09-08.19:23:04.700>
labels = ['interpreter-core', 'type-feature', '3.7']
title = 'Convert warnings to SyntaxWarning in parser'
updated_at = <Date 2017-10-23.12:58:50.124>
user = 'https://github.com/serhiy-storchaka'

bugs.python.org fields:

activity = <Date 2017-10-23.12:58:50.124>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = True
closed_date = <Date 2017-10-23.12:58:50.126>
closer = 'serhiy.storchaka'
components = ['Interpreter Core']
creation = <Date 2016-09-08.19:23:04.700>
creator = 'serhiy.storchaka'
dependencies = []
files = []
hgrepos = []
issue_num = 28028
keywords = []
message_count = 3.0
messages = ['275122', '279651', '304801']
nosy_count = 7.0
nosy_names = ['ncoghlan', 'eric.smith', 'ned.deily', 'python-dev', 'martin.panter', 'serhiy.storchaka', 'abarry']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue28028'
versions = ['Python 3.7']

Activity

  1. serhiy-storchaka commented on Sep 8, 2016

    @serhiy-storchaka
    MemberAuthor

    AST parser converts UnicodeError and ValueError raised during parsing string literal to SyntaxError. Maybe make it converting warnings (see bpo-27364) to SyntaxWarning?

  2. Vgr255 commented on Oct 29, 2016

    Vgr255mannequin
    Mannequin

    Cross-ping from bpo-28128

    I think it would be best to solve this issue, solving both bpo-28128 and any future warning-introducing feature or deprecation. I've marked this issue as a dependency for bpo-28128 as well as upping the priority. There are less than 7 weeks before the final 3.6.0 release and I would like to get as much mileage out of this before then.

    Thanks :)

  3. serhiy-storchaka commented on Oct 23, 2017

    @serhiy-storchaka
    MemberAuthor

    Closed because I don't see ways to do this.

  4. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.7 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions