mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)
This commit is contained in:
parent
a6e8db5e8e
commit
94b462686b
2 changed files with 36 additions and 30 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue