Skip to content

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

Closed
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:reject_invalid_escape
Closed

gh-98401: Reject invalid escape sequences in strings#98404
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:reject_invalid_escape

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