gh-106320: Move _PyMethodWrapper_Type to internal C API by vstinner · Pull Request #107064 · python/cpython
Conversation
Hi Victor, we were using _PyMethodWrapper_Type in our C extension code, what can we check now?
if (mthd && PyObject_TypeCheck(mthd, &_PyMethodWrapper_Type)) {
Hi Victor, we were using _PyMethodWrapper_Type in our C extension code, what can we check now?
You can get the type from the Python module types.MethodWrapperType.
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