Uh oh!
There was an error while loading. Please reload this page.
gh-107972: Argument Clinic: Ensure a C basename is provided after 'as' - #107973
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
AlexWaygood
left a comment
There was a problem hiding this comment.
+1 to Adam's suggestions, but otherwise this LGTM. It appears we dofail() currently for at least the second case you're adding a test for, but the error message is pretty nonsensical currently:
Couldn't find existing function 'foo2'!
erlend-aasland
commented
Aug 15, 2023
Well, if you'd defined |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
AlexWaygood
commented
Aug 15, 2023
Yup, I gathered. Maybe we should do that in the test, actually, so that the only erroneous thing in the test case is the one we're explicitly testing that clinic catches? |
erlend-aasland
commented
Aug 15, 2023
Try this weird input; clinic accepts it on /*[clinic input]output everything blockfoo2[clinic start generated code]*//*[clinic input]output everything blockfoo as = foo2[clinic start generated code]*/ |
erlend-aasland
commented
Aug 15, 2023
And with that in mind, we should probably adjust the test case to look exactly like that. |
erlend-aasland
commented
Aug 15, 2023
I did not read this until now; we came to the same conclusion :) |
erlend-aasland
commented
Aug 15, 2023
If it won't backport cleanly, I'm inclined to not backport it. |
erlend-aasland
commented
Aug 15, 2023
Thanks for the reviews! |
miss-islington
commented
Aug 15, 2023
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
miss-islington
commented
Aug 15, 2023
Sorry, @erlend-aasland, I could not cleanly backport this to |
miss-islington
commented
Aug 15, 2023
Sorry, @erlend-aasland, I could not cleanly backport this to |
bedevere-bot
commented
Aug 15, 2023
|
…er 'as' (python#107973) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.