Skip to content
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

Proof of concept: gh-64595 fix #37

Conversation

erlend-aasland
Copy link

@erlend-aasland erlend-aasland commented Jan 17, 2024

TODO:

  • [ ]: test (I wonder how we're going to fix that; it will imply monkey-patching clinic.py during testing; I might be wrong)

@erlend-aasland
Copy link
Author

Quick'n dirty, rough solution to python#64595

@@ -2522,9 +2525,14 @@ def parse_file(
verify=verify,
filename=filename,
limited_capi=limited_capi)
cooked = clinic.parse(raw)
generated, cooked = clinic.parse(raw)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need better naming here. cooked must go.

Comment on lines +6306 to +6307
verify=not ns.force, limited_capi=ns.limited_capi,
force=ns.force)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels silly that verify is always the opposite of force.

@erlend-aasland
Copy link
Author

I don't think we want to do this; working around build system shortcomings by adding (another) hack in Argument Clinic is not the way to go.

@erlend-aasland erlend-aasland deleted the clinic/touch-source-file-if-clinic-changed branch January 17, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant