This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients Rodolpho.Eckhardt, belopolsky, brian.curtin, eric.araujo, georg.brandl, henriquebastos, robcliffe, ron_adam, terry.reedy
Date 2010-11-22.01:33:35
SpamBayes Score 0.030840788
Marked as misclassified No
Message-id <1290389622.81.0.165922690352.issue8525@psf.upfronthosting.co.za>
In-reply-to
Content
The following passes tests in elp_8525.patch, but is much simpler:

===================================================================
--- Lib/pydoc.py	(revision 86600)
+++ Lib/pydoc.py	(working copy)
@@ -1139,6 +1139,15 @@
                 push('    ' + makename(base))
             push('')
 
+        # List the built-in subclasses, if any:
+        subclasses = [cls.__name__ for cls in object.__subclasses__()
+                      if cls.__module__ == 'builtins']
+        if subclasses:
+            push("Built-in subclasses:")
+            for subclassname in sorted(subclasses):
+                push('    ' + subclassname)
+            push('')
+
         # Cute little class to pump out a horizontal rule between sections.
         class HorizontalRule:
             def __init__(self):
History
Date User Action Args
2010-11-22 01:33:42belopolskysetrecipients: + belopolsky, georg.brandl, terry.reedy, ron_adam, eric.araujo, brian.curtin, robcliffe, henriquebastos, Rodolpho.Eckhardt
2010-11-22 01:33:42belopolskysetmessageid: <1290389622.81.0.165922690352.issue8525@psf.upfronthosting.co.za>
2010-11-22 01:33:35belopolskylinkissue8525 messages
2010-11-22 01:33:35belopolskycreate