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 eric.snow
Recipients brett.cannon, eric.snow
Date 2012-04-18.17:54:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334771657.92.0.353903332037.issue14615@psf.upfronthosting.co.za>
In-reply-to
Content
Curse you, undocumented API that we have to support!  It could still wrap a simple get() on sys.modules, roughly like this:

PyObject*
PyState_FindModule(struct PyModuleDef* m)
{
    PyObject* modules, module;
    modules = PyImport_GetModuleDict();
    if (modules == NULL)
        return NULL;
    module = PyDict_GetItemString(sys_modules, m->m_name);
    return module==Py_None ? NULL : module;
}
History
Date User Action Args
2012-04-18 17:54:17eric.snowsetrecipients: + eric.snow, brett.cannon
2012-04-18 17:54:17eric.snowsetmessageid: <1334771657.92.0.353903332037.issue14615@psf.upfronthosting.co.za>
2012-04-18 17:54:17eric.snowlinkissue14615 messages
2012-04-18 17:54:17eric.snowcreate