New submission from Decorater <seandhun...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32075>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to