◐ Shell
clean mode source ↗

gh-106320: Move _PyMethodWrapper_Type to internal C API by vstinner · Pull Request #107064 · python/cpython

Conversation

jtcave pushed a commit to jtcave/cpython that referenced this pull request

Jul 23, 2023

mementum pushed a commit to mementum/cpython that referenced this pull request

Jul 23, 2023

@pmiloslavsky

Hi Victor, we were using _PyMethodWrapper_Type in our C extension code, what can we check now?

if (mthd && PyObject_TypeCheck(mthd, &_PyMethodWrapper_Type)) {

@vstinner

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.

Labels