diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/reference/datamodel.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 5b220d0..3d531c7 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1314,6 +1314,11 @@ access (use of, assignment to, or deletion of ``x.name``) for class instances. should only be implemented if ``del obj.name`` is meaningful for the object. +.. method:: object.__dir__(self) + + Called when :func:`dir` is called on the object. A list must be returned. + + .. _descriptors: Implementing Descriptors |