mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
#1715: include sub-extension modules in pydoc text output.
This commit is contained in:
parent
dd76e05dd9
commit
f2dae0e14a
3 changed files with 21 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
"""Something just to look at via pydoc."""
|
||||
|
||||
import types
|
||||
|
||||
class A_classic:
|
||||
"A classic class."
|
||||
def A_method(self):
|
||||
|
@ -208,3 +210,7 @@ class FunkyProperties(object):
|
|||
del inst.desc[self.attr]
|
||||
|
||||
x = property(get_desc('x'), set_desc('x'), del_desc('x'), 'prop x')
|
||||
|
||||
|
||||
submodule = types.ModuleType(__name__ + '.submodule',
|
||||
"""A submodule, which should appear in its parent's summary""")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue