classification
Title: Inaccurate phrasing in extending/newtypes_tutorial
Type: Stage: patch review
Components: Documentation Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, rtobar, rtobar2
Priority: normal Keywords: patch

Created on 2021-11-12 02:55 by rtobar2, last changed 2021-11-12 03:13 by rtobar.

Pull Requests
URL Status Linked Edit
PR 29529 open rtobar, 2021-11-12 03:13
Messages (1)
msg406185 - (view) Author: Rodrigo Tobar (rtobar2) * Date: 2021-11-12 02:55
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.
History
Date User Action Args
2021-11-12 03:13:23rtobarsetkeywords: + patch
nosy: + rtobar

pull_requests: + pull_request27779
stage: patch review
2021-11-12 02:55:53rtobar2create