Kaydet (Commit) a31aa45f authored tarafından Georg Brandl's avatar Georg Brandl

#5324: document __subclasses__().

üst c18f6b02
......@@ -2674,6 +2674,17 @@ types, where they are relevant. Some of these are not reported by the
The name of the class or type.
.. method:: class.__subclasses__
:term:`New-style class`\ es 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment