Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-27494: Fix 2to3 handling of trailing comma after a generator expression#3771

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
benjaminp merged 2 commits intopython:masterfromjstasiak:fix-lib2to3
Oct 5, 2017

Conversation

jstasiak
Copy link
Contributor

While this is a valid Python 2 and Python 3 syntax lib2to3 would choke
on it:

set(xforxin [],)

This patch changes the grammar definition used by lib2to3 so that the
actual Python syntax is supported now and backwards compatibility is
preserved.

https://bugs.python.org/issue27494

Note: there are some issues with the build of the first pull request I created (#60) to merge this change so this is a replacement pull request I create, hoping it'll fix things.

mscuthbert reacted with thumbs up emoji
…essionWhile this is a valid Python 2 and Python 3 syntax lib2to3 would chokeon it:    set(x for x in [],)This patch changes the grammar definition used by lib2to3 so that theactual Python syntax is supported now and backwards compatibility ispreserved.
@jstasiak
Copy link
ContributorAuthor

@ambv or@benjaminp may I ask for a review? If there's a more appropriate review I'd appreciate an information.

@benjaminpbenjaminp merged commitaf810b3 intopython:masterOct 5, 2017
@jstasiak
Copy link
ContributorAuthor

Thanks!

@jstasiakjstasiak deleted the fix-lib2to3 branchOctober 5, 2017 14:04
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull requestJul 11, 2018
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJul 31, 2018
… generator expression (pythonGH-3771)" (pythonGH-8241)This reverts commitaf810b3.This is not valid syntax (see bpo-32012).(cherry picked from commit4b8a7f5)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull requestJul 31, 2018
…a generator expression (GH-3771)" (#8241)This reverts commitaf810b3.This is not valid syntax (seebpo-32012).
miss-islington added a commit that referenced this pull requestJul 31, 2018
… generator expression (GH-3771)" (GH-8241)This reverts commitaf810b3.This is not valid syntax (seebpo-32012).(cherry picked from commit4b8a7f5)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@jstasiak@benjaminp@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp