New submission from Rodrigo Tobar :
In `extending/newtypes_tutorial.rst` the following phrase appears:
"[...], containing a pointer to a type object and a reference count (these can be accessed using the macros :c:macro:`Py_REFCNT` and c:macro:`Py_TYPE` respectively)."
I believe it should read "using the macros :c:macro:`Py_TYPE` and c:macro:`Py_REFCNT` respectively" to follow the same order in which the fields are described.
I'll put forward a patch. It seems this phrase goes way back a few python versions, but I'm tagging 3.11 here only.
----------
assignee: docs@python
components: Documentation
messages: 406185
nosy: docs@python, rtobar2
priority: normal
severity: normal
status: open
title: Inaccurate phrasing in extending/newtypes_tutorial
versions: Python 3.11
_______________________________________
Python tracker
https://bugs.python.org/issue45790
_______________________________________