[Python-Dev] Patch 1644818: Allow importing built-in submodules

Miguel Lobo mlobol at gmail.com
Mon Mar 12 12:58:38 CET 2007


Hi list,

Sorry for the repetition, but since nobody has commented on patch 1644818
for about a week I thought perhaps I should ask again.

Is there anything I need to do before the patch is ready for inclusion?

As a remainder, this patch (which can be seen at
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1644818&group_id=5470
) fixes built-in submodules.  At the moment importing built-in submodules
does not work whether the parent submodule is itself built-in, a normal
module or a frozen module.  This small patch fixes all three cases and has
been tested to work under Windows.

This is useful for example with the PyQt project, which provides a package
called PyQt4 containing a number of extension modules (PyQt4.QtCore,
PyQt4.QtGui, etc).  It should be possible to create a bespoke Python
interpreter that has these extensions statically linked, but without this
patch importing these extensions fails in such an interpreter.

Regards,
Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20070312/4d5ff79b/attachment.htm 


More information about the Python-Dev mailing list