-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc direasypendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtopic-C-API
Description
Documentation
Here https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_Check, and probably in many other places:
int PyUnicode_Check([PyObject](https://docs.python.org/3/c-api/structures.html#c.PyObject) *obj)
Return true if the object obj is a Unicode object or an instance of a Unicode subtype. This function always succeeds.
This is not the degree of precision I would expect from an API reference. The return value is int
, not bool
, therefore true
is unprecise.
Correct wording: "Return 1 if ... Otherwise return 0."
Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc direasypendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtopic-C-API
Projects
Status
Todo