gh-127369: Deprecate ctypes.DllGetClassObject and ctypes.DllCanUnloadNow#127766
Closed
encukou wants to merge 3 commits intopython:mainfrom
Closed
gh-127369: Deprecate ctypes.DllGetClassObject and ctypes.DllCanUnloadNow#127766encukou wants to merge 3 commits intopython:mainfrom
encukou wants to merge 3 commits intopython:mainfrom
Conversation
junkmd
added a commit
to junkmd/comtypes-python-dev-compatibility
that referenced
this pull request
Dec 9, 2024
junkmd
added a commit
to junkmd/comtypes-python-dev-compatibility
that referenced
this pull request
Dec 10, 2024
zooba
approved these changes
Dec 10, 2024
Member
Author
|
See discussion on the issue. |
Member
Author
|
@junkmd is working on the I'll close this PR for now. |
Contributor
|
This feature has not been maintained for many years, but it should be an important functionality for implementing inproc COM servers. To untangle the complex dependencies, it is necessary to refine the implementation through repeated refactoring. I want to express my gratitude to the community for tackling this challenging issue, which will likely take a long time to resolve. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deprecate ctypes.DllGetClassObject and ctypes.DllCanUnloadNow, preserving their functionality for now.
Also deprecate the corresponding DLL functions exported from
_ctypes.pyd, so that if someone replaces the hooks and calls the C functions, they still get the warning.Removal is slated for 3.19 per a proposed default deprecation period.
cc @junkmd @zooba
📚 Documentation preview 📚: https://cpython-previews--127766.org.readthedocs.build/