add an entry for object.__dir__

This commit is contained in:
Benjamin Peterson 2008-07-02 14:44:54 +00:00
parent 549845b5f5
commit 1cef37cd0d
1 changed files with 5 additions and 0 deletions

View File

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