-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
bpo-40246: Revert reporting of invalid string prefixes #19888
bpo-40246: Revert reporting of invalid string prefixes #19888
Conversation
Due to backwards compatibility concerns, that keywords immediately followed by a string without whitespace between them (like in `bg="#d00" if clear else"#fca"`) will fail to parse, PR19476 has to be reverted.
5f002af
to
1c3eeaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also delete the NEWS item of the reverted change (Misc/NEWS.d/next/Core and Builtins/2020-04-11-17-52-03.bpo-40246.vXPze5.rst).
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Can't find the news file. There is no file on master with |
That news file has already been merged to the changelog when 3.9.0a6 was released. I think this should explicitly add a new entry about the revert. |
@@ -0,0 +1 @@ | |||
Reporting a specialised error message for invalid string prefixes, which was introduced in #19888, is being reverted due to backwards compatibility concerns for strings that immediately follow a reserved keyword without whitespace between them. Constructs like `bg="#d00" if clear else"#fca"` were failing to parse, which is not an acceptable breakage on such short notice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
19888 is this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops. Thanks for the catch!
I have made the requested changes; please review again |
Thanks for making the requested changes! @gvanrossum: please review the changes made to this pull request. |
@@ -0,0 +1 @@ | |||
Reporting a specialised error message for invalid string prefixes, which was introduced in GH-19476, is being reverted due to backwards compatibility concerns for strings that immediately follow a reserved keyword without whitespace between them. Constructs like `bg="#d00" if clear else"#fca"` were failing to parse, which is not an acceptable breakage on such short notice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, mention the bpo number instead of the PR number (GH-19476)
Misc/NEWS.d/next/Core and Builtins/2020-05-03-23-28-11.bpo-40246.c1D7x8.rst
Outdated
Show resolved
Hide resolved
I've backported this PR to Fedora's build of 3.9.0a6 and I still see:
I will double check the patch was actually applied. |
It was a cache issue, it used an older, unpatched build. Sorry for the noise. In fact, this PR makes the problem go away, as ecpected. |
I'm not getting a
|
Misc/NEWS.d/next/Core and Builtins/2020-05-03-23-28-11.bpo-40246.c1D7x8.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Pablo Galindo <[email protected]>
Due to backwards compatibility concerns, that keywords immediately
followed by a string without whitespace between them
(like in
bg="#d00" if clear else"#fca"
) will fail to parse,GH-19476 has to be reverted.
https://bugs.python.org/issue40246