[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-bugs-list
Subject:    [issue1715] Make pydoc list submodules
From:       report () bugs ! python ! org (Gustavo J !  A !  M !  Carneiro)
Date:       2007-12-31 23:52:12
Message-ID: 1199145132.63.0.00647784499418.issue1715 () psf ! upfronthosting ! co ! za
[Download RAW message or body]


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

Often python extension modules define submodules like this:

static PyObject *
initfoo_xpto(void)
{
    PyObject *m;
    m = Py_InitModule3("foo.xpto", foo_xpto_functions, NULL);
    [...]
    return m;
}

PyMODINIT_FUNC
initfoo(void)
{
    PyObject *m;
    PyObject *submodule;
    m = Py_InitModule3("foo", foo_functions, NULL);
    [...]
    submodule = initfoo_xpto();
    Py_INCREF(submodule);
    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>
<http://bugs.python.org/issue1715>
__________________________________
-------------- 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/python-bugs-list/attachments/20071231/90b0608d/attachment-0001.bin \



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic