Repository navigation
Conversation
…signature Add a note to the --without-doc-strings documentation explaining that disabling docstrings also prevents inspect.signature() from retrieving signatures for built-in functions and methods implemented in C, since those signatures are embedded in their docstrings by Argument Clinic.
Gh-Novel
requested review from
AA-Turner,
corona10,
emmatyping and
erlend-aasland
as code owners
February 12, 2026 13:25
|
This PR is stale because it has been open for 30 days with no activity. |
|
This PR is stale because it has been open for 90 days with no activity. |
Documentation build overview
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a note to the
--without-doc-stringsconfigure option documentation explaining that disabling docstrings also preventsinspect.signature()from retrieving signatures for built-in functions and methods implemented in C.This happens because signatures for C builtins are embedded in their docstrings via the Argument Clinic tool (
__text_signature__attribute). When docstrings are stripped, the signature metadata is lost.Changes
.. note::box toDoc/using/configure.rstunder--without-doc-stringsinspect.signature(),help(), and third-party framework impact\n- Links to the Argument Clinic documentation in the devguideTesting
len.__text_signature__attribute exists in normal builds and would beNonewithout doc strings📚 Documentation preview 📚: https://cpython-previews--144746.org.readthedocs.build/