-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
ast.parse allows positional-only params with old feature_version #94996
Labels
type-bug
An unexpected behavior, bug, or error
Comments
hauntsaninja
added a commit
to hauntsaninja/cpython
that referenced
this issue
Jul 19, 2022
lysnikolaou
pushed a commit
that referenced
this issue
Aug 12, 2022
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 12, 2022
… < (3, 8) (pythonGH-94997) (cherry picked from commit b5e3ea2) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Oops, after merging #94997, I figured out that we should probably do this for lambda parameters as well, right? ❯ ./python
Python 3.12.0a0 (heads/main:b5e3ea2862, Aug 12 2022, 19:50:42) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> ast.parse('lambda x, /: ...')
<ast.Module object at 0x7fb4a02b8140>
>>> ast.parse('lambda x, /: ...', feature_version=(3, 7))
<ast.Module object at 0x7fb4a02b76b0> |
hauntsaninja
added a commit
to hauntsaninja/cpython
that referenced
this issue
Aug 12, 2022
Great point, opened #95934 |
hauntsaninja
added a commit
to hauntsaninja/cpython
that referenced
this issue
Aug 12, 2022
… < (3, 8) (pythonGH-94997) (cherry picked from commit b5e3ea2)
hauntsaninja
added a commit
to hauntsaninja/cpython
that referenced
this issue
Aug 12, 2022
…version < (3, 8) (pythonGH-94997). (cherry picked from commit b5e3ea2) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
lysnikolaou
pushed a commit
that referenced
this issue
Aug 12, 2022
hauntsaninja
added a commit
to hauntsaninja/cpython
that referenced
this issue
Aug 12, 2022
…ersion < (3, 8) (pythonGH-95934) (cherry picked from commit a965db3) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
hauntsaninja
added a commit
to hauntsaninja/cpython
that referenced
this issue
Aug 12, 2022
…ersion < (3, 8) (pythonGH-95934). (cherry picked from commit a965db3) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
miss-islington
pushed a commit
that referenced
this issue
Aug 12, 2022
miss-islington
pushed a commit
that referenced
this issue
Aug 12, 2022
miss-islington
pushed a commit
that referenced
this issue
Aug 12, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following should raise SyntaxError:
The text was updated successfully, but these errors were encountered: