mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
Use python macros to stay on public API for new pythons
This commit is contained in:
committed by
Stefan Seefeld
parent
944fa075b3
commit
9ad5298d0b
@@ -25,7 +25,7 @@ namespace detail
|
||||
|
||||
if (
|
||||
PyMethod_Check(m.get())
|
||||
&& ((PyMethodObject*)m.get())->im_self == this->m_self
|
||||
&& PyMethod_GET_SELF(m.get()) == this->m_self
|
||||
&& class_object->tp_dict != 0
|
||||
)
|
||||
{
|
||||
@@ -34,7 +34,7 @@ namespace detail
|
||||
|
||||
|
||||
}
|
||||
if (borrowed_f != ((PyMethodObject*)m.get())->im_func)
|
||||
if (borrowed_f != PyMethod_GET_FUNCTION(m.get()))
|
||||
return override(m);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user