10000 gh-84436: update docs on Py_None/Py_True/Py_False/Py_Ellipsis becoming immortal by iritkatriel · Pull Request #105195 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-84436: update docs on Py_None/Py_True/Py_False/Py_Ellipsis becoming immortal #105195

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

Merged
merged 8 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Carl Meyer <carl@oddbird.net>
  • Loading branch information
iritkatriel and carljm authored Jun 21, 2023
commit 7330a7f225c1d216e33ac7df28df3ac3f3b3c5e9
6 changes: 3 additions & 3 deletions Doc/c-api/bool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ are available, however.

.. c:macro:: Py_RETURN_FALSE

Return :const:`Py_False` from a function.
Return :c:data:`Py_False` from a function.


.. c:macro:: Py_RETURN_TRUE

Return :const:`Py_True` from a function.
Return :c:data:`Py_True` from a function.


.. c:function:: PyObject* PyBool_FromLong(long v)

Return :const:`Py_True` or :const:`Py_False`, depending on the truth value of *v*.
Return :c:data:`Py_True` or :c:data:`Py_False`, depending on the truth value of *v*.
2 changes: 1 addition & 1 deletion Doc/c-api/slice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Ellipsis Object
.. c:var:: PyObject *Py_Ellipsis

The Python ``Ellipsis`` object. This object has no methods. Like
:c:data:`Py_None` it is an `immortal <https://peps.python.org/pep-0683/>`_.
:c:data:`Py_None`, it is an `immortal <https://peps.python.org/pep-0683/>`_.
singleton object.

.. versionchanged:: 3.12
Expand Down
0