Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bpo-32075: Expose ZipImporter Type Object in the include header files. #4470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from

Conversation

AraHaan
Copy link
Contributor

@AraHaan AraHaan commented Nov 19, 2017

This should hopefully allow subclassing the zipimporter class outside of
the Python layer as well.

See the issue at bpo for more information as to why this needs exposed in the include files.

https://bugs.python.org/issue32075

This should hopefully allow subclassing the zipimporter class outside of
the Python layer as well.
@AraHaan AraHaan closed this Nov 20, 2017
@AraHaan AraHaan reopened this Nov 20, 2017
@AraHaan AraHaan changed the base branch from master to 3.6 November 20, 2017 08:45
@AraHaan AraHaan changed the base branch from 3.6 to master November 20, 2017 08:46
extern "C" {
#endif

PyAPI_DATA(PyTypeObject) PyZipImporter_Type;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the rest of the file shouldn't be part of the stable ABI.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But then how would someone be able to subclass or subtype the zip importer in their C code?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relying only on the stable ABI is an opt-in thing when you build an extension, so leaving this out of it won't prevent it from being available overall, just in a certain instance.

@brettcannon
Copy link
Member

I personally don't have time to review and contemplate the ramifications of this, but I would suggest that any changes not be part of the stable ABI.

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Sep 19, 2018

zipimport have been rewritten in pure Python (bpo-25711).

@AraHaan AraHaan deleted the issue32075 branch September 19, 2018 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants