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 gustavo
Recipients gustavo
Date 2007-12-31.23:52:12
SpamBayes Score 8.5037624e-05
Marked as misclassified No
Message-id <1199145132.63.0.00647784499418.issue1715@psf.upfronthosting.co.za>
In-reply-to
Content
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.
Files
File name Uploaded
pydoc-submodules.diff gustavo, 2007-12-31.23:52:12
History
Date User Action Args
2007-12-31 23:52:12gustavosetspambayes_score: 8.50376e-05 -> 8.5037624e-05
recipients: + gustavo
2007-12-31 23:52:12gustavosetspambayes_score: 8.50376e-05 -> 8.50376e-05
messageid: <1199145132.63.0.00647784499418.issue1715@psf.upfronthosting.co.za>
2007-12-31 23:52:12gustavolinkissue1715 messages
2007-12-31 23:52:12gustavocreate