summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2021-09-18 06:49:43 (GMT)
committerGitHub <noreply@github.com>2021-09-18 06:49:43 (GMT)
commit94b462686b7dfabbd69cc9401037d736d71c4dc2 (patch)
tree69eca0ad44c76f694f4210a23addd328d8c5b6fe /Objects
parenta6e8db5e8e6780411db749d404715dbe021647c7 (diff)
downloadcpython-94b462686b7dfabbd69cc9401037d736d71c4dc2.zip
cpython-94b462686b7dfabbd69cc9401037d736d71c4dc2.tar.gz
cpython-94b462686b7dfabbd69cc9401037d736d71c4dc2.tar.bz2
bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index ec274a0..a81d071 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -8458,7 +8458,8 @@ update_all_slots(PyTypeObject* type)
}
-/* Call __set_name__ on all descriptors in a newly generated type */
+/* Call __set_name__ on all attributes (including descriptors)
+ in a newly generated type */
static int
type_new_set_names(PyTypeObject *type)
{