Message122057
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): |
|
Date |
User |
Action |
Args |
2010-11-22 01:33:42 | belopolsky | set | recipients:
+ belopolsky, georg.brandl, terry.reedy, ron_adam, eric.araujo, brian.curtin, robcliffe, henriquebastos, Rodolpho.Eckhardt |
2010-11-22 01:33:42 | belopolsky | set | messageid: <1290389622.81.0.165922690352.issue8525@psf.upfronthosting.co.za> |
2010-11-22 01:33:35 | belopolsky | link | issue8525 messages |
2010-11-22 01:33:35 | belopolsky | create | |
|