[Python-checkins] r70649 - in python/branches/py3k: Doc/library/stdtypes.rst
georg.brandl
python-checkins at python.org
Sat Mar 28 20:13:21 CET 2009
Author: georg.brandl
Date: Sat Mar 28 20:13:21 2009
New Revision: 70649
Log:
Merged revisions 70648 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70648 | georg.brandl | 2009-03-28 14:10:37 -0500 (Sa, 28 Mär 2009) | 1 line
#5324: document __subclasses__().
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Doc/library/stdtypes.rst
Modified: python/branches/py3k/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/stdtypes.rst (original)
+++ python/branches/py3k/Doc/library/stdtypes.rst Sat Mar 28 20:13:21 2009
@@ -2665,6 +2665,16 @@
The name of the class or type.
+
+.. method:: class.__subclasses__
+
+ All classes keep a list of weak references to their immediate subclasses.
+ This method returns a list of all those references still alive. Example::
+
+ >>> int.__subclasses__()
+ [<type 'bool'>]
+
+
.. rubric:: Footnotes
.. [#] Additional information on these special methods may be found in the Python
More information about the Python-checkins
mailing list