mirror of
https://github.com/python/cpython.git
synced 2025-09-24 09:23:02 +00:00
[3.12] gh-112266: Remove (if defined)
part from __dict__
and __weakref__
docstrings (GH-112268) (#112270)
gh-112266: Remove `(if defined)` part from `__dict__` and `__weakref__` docstrings (GH-112268)
(cherry picked from commit f8129146ef
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
f521321ddf
commit
cf8c830755
3 changed files with 20 additions and 18 deletions
|
@ -2974,21 +2974,21 @@ subtype_getweakref(PyObject *obj, void *context)
|
|||
|
||||
static PyGetSetDef subtype_getsets_full[] = {
|
||||
{"__dict__", subtype_dict, subtype_setdict,
|
||||
PyDoc_STR("dictionary for instance variables (if defined)")},
|
||||
PyDoc_STR("dictionary for instance variables")},
|
||||
{"__weakref__", subtype_getweakref, NULL,
|
||||
PyDoc_STR("list of weak references to the object (if defined)")},
|
||||
PyDoc_STR("list of weak references to the object")},
|
||||
{0}
|
||||
};
|
||||
|
||||
static PyGetSetDef subtype_getsets_dict_only[] = {
|
||||
{"__dict__", subtype_dict, subtype_setdict,
|
||||
PyDoc_STR("dictionary for instance variables (if defined)")},
|
||||
PyDoc_STR("dictionary for instance variables")},
|
||||
{0}
|
||||
};
|
||||
|
||||
static PyGetSetDef subtype_getsets_weakref_only[] = {
|
||||
{"__weakref__", subtype_getweakref, NULL,
|
||||
PyDoc_STR("list of weak references to the object (if defined)")},
|
||||
PyDoc_STR("list of weak references to the object")},
|
||||
{0}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue