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

gh-98401: Reject invalid escape sequences in strings #98404

Closed
wants to merge 1 commit into from
Closed

gh-98401: Reject invalid escape sequences in strings #98404

wants to merge 1 commit into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Oct 18, 2022

A backslash-character pair that is not a valid escape sequence now generates a SyntaxError.

A backslash-character pair that is not a valid escape sequence now
generates a SyntaxError.
@vstinner
Copy link
Member Author

cc @serhiy-storchaka @hugovk

@vstinner vstinner marked this pull request as draft October 20, 2022 09:45
@vstinner
Copy link
Member Author

I convert this PR to a draft since this change seems to be more controversial than expected: #98401

@vstinner
Copy link
Member Author

vstinner commented Nov 2, 2022

PR abandoned in favor of #99011

@vstinner vstinner closed this Nov 2, 2022
@vstinner vstinner deleted the reject_invalid_escape branch November 2, 2022 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants