[New-bugs-announce] [issue1715] Make pydoc list submodules

Gustavo J. A. M. Carneiro report at bugs.python.org
Tue Jan 1 00:52:12 CET 2008

New submission from Gustavo J. A. M. Carneiro:

Often python extension modules define submodules like this:

static PyObject *
    PyObject *m;
    m = Py_InitModule3("foo.xpto", foo_xpto_functions, NULL);
    return m;

    PyObject *m;
    PyObject *submodule;
    m = Py_InitModule3("foo", foo_functions, NULL);
    submodule = initfoo_xpto();
    PyModule_AddObject(m, "xpto", submodule);

Unfortunately pydoc does not list these submodules.  Attached patch
fixes it.

components: Demos and Tools
files: pydoc-submodules.diff
messages: 59067
nosy: gustavo
severity: normal
status: open
title: Make pydoc list submodules
type: rfe
versions: Python 2.6
Added file: http://bugs.python.org/file9038/pydoc-submodules.diff

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pydoc-submodules.diff
Type: text/x-patch
Size: 702 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071231/90b0608d/attachment.bin 

More information about the New-bugs-announce mailing list