[New-bugs-announce] [issue32075] Expose ZipImporter Type Object in the include header files.

Decorater report at bugs.python.org
Sun Nov 19 14:56:09 EST 2017


New submission from Decorater <seandhunt_7 at yahoo.com>:

I would like to make an C extension module which basically would have the ZipImporter type defined in the ``zipimport.c`` which defines most things related to ZipImporter to be public so that way one can set it to ``.tp_base`` on their C extension.

That should hopefully in the C side of things allow subclassing the zipimporter class outside of the Python layer as well. Otherwise I would have to manually copy the said definition from zipimport.c and that could be a huge risk if a bug or something in the ZipImporter was fixed that it wont automatically be fixed in the C version of the subclass. I want precisely this and for it to be exposed to other people who might want to subclass the zipimporter class outside of the Python layer as well.

----------
components: Extension Modules, Interpreter Core, Library (Lib)
messages: 306513
nosy: Decorater
priority: normal
severity: normal
status: open
title: Expose ZipImporter Type Object in the include header files.
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32075>
_______________________________________


More information about the New-bugs-announce mailing list