-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Docs: Argument Clinic: Move the CConverter class to the reference #107671
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
Docs: Argument Clinic: Move the CConverter class to the reference #107671
Conversation
|
||
.. module:: clinic | ||
|
||
.. class:: CConverter |
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.
Is this an actual class that I can import and use? If not, should it get a :noindex:
?
I was going through the howto and saw an example that points to Modules/zlibmodule.c
, but in the source there's no mention of CConverter
.
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.
You must subclass the CConverter class when you write custom converters. Perhaps we can point to Modules/posixmodule.c
instead; there's a lot of custom converters there.
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.
Answering your first question; you cannot import it, but you can use it. It is "magically" there when you write a [python input]
block.
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.
I'm not sure about the :noindex:
, though.
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
GH-107701 is a backport of this pull request to the 3.12 branch. |
…thonGH-107671) (cherry picked from commit a6675b1) Co-authored-by: Erlend E. Aasland <[email protected]>
GH-107702 is a backport of this pull request to the 3.11 branch. |
…thonGH-107671) (cherry picked from commit a6675b1) Co-authored-by: Erlend E. Aasland <[email protected]>
…nce (GH-107671) (#107702) (cherry picked from commit a6675b1) Co-authored-by: Erlend E. Aasland <[email protected]>
…nce (GH-107671) (#107701) Docs: Argument Clinic: Move the CConverter class to the reference (GH-107671) (cherry picked from commit a6675b1) Co-authored-by: Erlend E. Aasland <[email protected]>
📚 Documentation preview 📚: https://cpython-previews--107671.org.readthedocs.build/