Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
AraHaan wants to merge12 commits intopython:masterfromAraHaan:issue32075

Conversation

AraHaan
Copy link
Contributor

@AraHaanAraHaan commentedNov 19, 2017
edited
Loading

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 ofthe Python layer as well.
@AraHaanAraHaan reopened thisNov 20, 2017
@AraHaanAraHaan changed the base branch frommaster to3.6November 20, 2017 08:45
@AraHaanAraHaan changed the base branch from3.6 tomasterNovember 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
ContributorAuthor

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 commentedSep 19, 2018
edited by bedevere-bot
Loading

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

@AraHaanAraHaan deleted the issue32075 branchSeptember 19, 2018 14:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@brettcannonbrettcannonbrettcannon left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@AraHaan@brettcannon@serhiy-storchaka@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp