PEP 531: Resolve uses of the default role (#3378)

This commit is contained in:
Adam Turner 2023-09-01 20:20:07 +01:00 committed by GitHub
parent 7fdc166f82
commit 461e931fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ protocol definition significantly more complex, both to define and to use:
a singleton tuple containing a reference to the object to be used as the
result of the existence check
* at the C layer, ``tp_exists`` implementations would return NULL to indicate
non-existence, and otherwise return a `PyObject *` pointer as the
non-existence, and otherwise return a ``PyObject *`` pointer as the
result of the existence check
Given that change, the sentinel object idiom could be rewritten as::