if test.support.HAVE_DOCSTRINGS:
expected_data_docstrings = (
- 'dictionary for instance variables (if defined)',
- 'list of weak references to the object (if defined)',
+ 'dictionary for instance variables',
+ 'list of weak references to the object',
) * 2
else:
expected_data_docstrings = ('', '', '', '')
| Data descriptors defined here:
|
| __dict__
- | dictionary for instance variables (if defined)
+ | dictionary for instance variables
|
| __weakref__
- | list of weak references to the object (if defined)
+ | list of weak references to the object
FUNCTIONS
doc_func()
Data descriptors defined here:
__dict__
- dictionary for instance variables (if defined)
+ dictionary for instance variables
__weakref__
- list of weak references to the object (if defined)
+ list of weak references to the object
class B(builtins.object)
Data descriptors defined here:
__dict__
- dictionary for instance variables (if defined)
+ dictionary for instance variables
__weakref__
- list of weak references to the object (if defined)
+ list of weak references to the object
Data and other attributes defined here:
NO_MEANING = 'eggs'
__annotations__ = {'NO_MEANING': <class 'str'>}
__class_getitem__(item) from builtins.type
Data descriptors defined here:
__dict__
- dictionary for instance variables (if defined)
+ dictionary for instance variables
__weakref__
- list of weak references to the object (if defined)
+ list of weak references to the object
Functions
doc_func()
| Data descriptors inherited from A:
|
| __dict__
- | dictionary for instance variables (if defined)
+ | dictionary for instance variables
|
| __weakref__
- | list of weak references to the object (if defined)
+ | list of weak references to the object
''' % __name__)
doc = pydoc.render_doc(B, renderer=pydoc.HTMLDoc())
Data descriptors inherited from A:
__dict__
- dictionary for instance variables (if defined)
+ dictionary for instance variables
__weakref__
- list of weak references to the object (if defined)
+ list of weak references to the object
"""
as_text = html2text(doc)
expected_lines = [line.strip() for line in expected_text.split("\n") if line]
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}
};