Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert warnings to SyntaxWarning in parser #72215

Closed
serhiy-storchaka opened this issue Sep 8, 2016 · 3 comments
Closed

Convert warnings to SyntaxWarning in parser #72215

serhiy-storchaka opened this issue Sep 8, 2016 · 3 comments
Labels
3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

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']

@serhiy-storchaka
Copy link
Member Author

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

@serhiy-storchaka serhiy-storchaka added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Sep 8, 2016
@Vgr255
Copy link
Mannequin

Vgr255 mannequin commented Oct 29, 2016

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 :)

@Vgr255 Vgr255 mannequin added the 3.7 (EOL) end of life label Oct 29, 2016
@serhiy-storchaka
Copy link
Member Author

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

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant