-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
gh-112205: Support @setter
annotation from AC
#112922
Conversation
corona10
commented
Dec 10, 2023
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Support getters and setters in Argument Clinic #112205
@setter
annotation from AC@setter
annotation from AC
@colesbury @erlend-aasland @AlexWaygood
|
@setter
annotation from AC@setter
annotation from AC
For the dev guide, I will send a PR once the PR is landed. |
And also, we need to consider supporting PyDoc for getter/setter with the separated PR. Lines 181 to 186 in 384d6c1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks good to me; thanks!
I would prefer to use a naming aligned with the names already used in the C API (tp_getset
, PyGetSetDef
); that is, consistently use getset
and GETSET
instead of getsetter
and GETSETTER
.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I probably introduced a typo with my recent suggestions; sorry 'bout that!
@erlend-aasland Thank you nice catch! PTAL one more time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let's wait for Alex to chime in.
(cc. @colesbury, if you'd like to take a look.)
(I'm travelling right now, but will do my best to review this tomorrow or Wednesday!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A few small suggestions, mostly to do with error messages:
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
--------- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
--------- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>