This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Antony.Lee
Recipients Antony.Lee
Date 2021-01-20.11:21:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611141685.32.0.342483333341.issue42976@roundup.psfhosted.org>
In-reply-to
Content
Starting from the keyword-arguments example at https://docs.python.org/3/extending/extending.html#keyword-parameters-for-extension-functions, change the docstring of `parrot` to "parrot(voltage, state, action, type=1<<5)\n--\n\n" (yes, the documented default value for type does not correspond to the actual implementation, but that's irrelevant here).  Compiling the extension module and running pydoc on it yields the following parsed signature for `parrot`: `parrot(voltage, state, action)` i.e. the `type` parameter got silently dropped.  (Note that `1<<5` can legitimately occur, e.g. as a bitmask flag, especially given that one currently cannot refer to globals in __text_signature__ (https://bugs.python.org/issue37881).)
History
Date User Action Args
2021-01-20 11:21:25Antony.Leesetrecipients: + Antony.Lee
2021-01-20 11:21:25Antony.Leesetmessageid: <1611141685.32.0.342483333341.issue42976@roundup.psfhosted.org>
2021-01-20 11:21:25Antony.Leelinkissue42976 messages
2021-01-20 11:21:25Antony.Leecreate