bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)

This commit is contained in:
Raymond Hettinger 2021-09-18 01:49:43 -05:00 committed by GitHub
parent a6e8db5e8e
commit 94b462686b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 30 deletions

View file

@ -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)
{