gh-94996: Disallow parsing pos only params with feature_version < (3, 8) (GH-94997)

This commit is contained in:
Shantanu 2022-08-12 10:27:50 -07:00 committed by GitHub
parent d2373fcb49
commit b5e3ea2862
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 6 deletions

View file

@ -0,0 +1 @@
:func:`ast.parse` will no longer parse function definitions with positional-only params when passed ``feature_version`` less than ``(3, 8)``. Patch by Shantanu Jain.