summaryrefslogtreecommitdiffstats
path: root/Objects/typeobject.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-09-18 07:10:00 (GMT)
committerGitHub <noreply@github.com>2021-09-18 07:10:00 (GMT)
commit7ab114bf1fa0f28ee267a4c69e597cc49a186a14 (patch)
tree60cdb31e03a62e0953ea27fa816f6ddd824b5a6d /Objects/typeobject.c
parent6e4101add568910409294554c8e863226a66bb64 (diff)
downloadcpython-7ab114bf1fa0f28ee267a4c69e597cc49a186a14.zip
cpython-7ab114bf1fa0f28ee267a4c69e597cc49a186a14.tar.gz
cpython-7ab114bf1fa0f28ee267a4c69e597cc49a186a14.tar.bz2
bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)
(cherry picked from commit 94b462686b7dfabbd69cc9401037d736d71c4dc2) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r--Objects/typeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index d966d36..dc06cf0 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -8428,7 +8428,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)
{