Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
I think it is fine to require Python 3.8 for clinic.py. Argument Clinic is for CPython development, and its primary purpose is to generate code for this repo. Third party projects may use it, but must do so completely at their own risk. |
Sorry, something went wrong.
|
Thanks both! |
Sorry, something went wrong.
|
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry, something went wrong.
|
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
|
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
|
GH-140854 is a backport of this pull request to the 3.9 branch. |
Sorry, something went wrong.
|
Sorry, @AlexWaygood, I could not cleanly backport this to 3.12 due to a conflict. cherry_picker fe694a6db620062f467469bd2bb987315d72fd62 3.12
|
Sorry, something went wrong.
|
GH-140855 is a backport of this pull request to the 3.10 branch. |
Sorry, something went wrong.
|
GH-140856 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
Following 376137f, usage of ast.Num and ast.Str causes DeprecationWarnings to be emitted. This PR updates clinic.py to use the newer AST nodes, avoiding deprecation warnings when running test_clinic.py.
It looks like this script currently takes pains so that it can maintain compatibility with older Python versions. This change means that it won't be possible to run it on Python 3.7 anymore, but Python 3.7 is nearly end-of-life now anyway.