[Python-3000-checkins] r64658 - python/branches/py3k/Doc/reference/datamodel.rst

benjamin.peterson python-3000-checkins at python.org
Wed Jul 2 16:44:55 CEST 2008


Author: benjamin.peterson
Date: Wed Jul  2 16:44:54 2008
New Revision: 64658

Log:
add an entry for object.__dir__

Modified:
   python/branches/py3k/Doc/reference/datamodel.rst

Modified: python/branches/py3k/Doc/reference/datamodel.rst
==============================================================================
--- python/branches/py3k/Doc/reference/datamodel.rst	(original)
+++ python/branches/py3k/Doc/reference/datamodel.rst	Wed Jul  2 16:44:54 2008
@@ -1314,6 +1314,11 @@
    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


More information about the Python-3000-checkins mailing list