diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-26 13:02:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 13:02:43 (GMT) |
commit | 6200aaf2967de420a2d83236008787c9f791561d (patch) | |
tree | d11be64f41c498889e8015eda64360b831e1c335 /Objects | |
parent | c075a1974b0dce9801cb645c77faa8af612b3db5 (diff) | |
download | cpython-6200aaf2967de420a2d83236008787c9f791561d.zip cpython-6200aaf2967de420a2d83236008787c9f791561d.tar.gz cpython-6200aaf2967de420a2d83236008787c9f791561d.tar.bz2 |
gh-106084: Remove _PyObject_HasLen() function (#106103)
Remove _PyObject_HasLen() and _PySequence_IterSearch() functions from
the public C API: move them to the internal C API
(pycore_abstract.h).
No longer export these symbols (in libpython).
Remove also unused pycore_initconfig.h include in typeobject.c.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/iterobject.c | 1 | ||||
-rw-r--r-- | Objects/typeobject.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Objects/iterobject.c b/Objects/iterobject.c index 7cb17a6..cf7cb8a 100644 --- a/Objects/iterobject.c +++ b/Objects/iterobject.c @@ -1,6 +1,7 @@ /* Iterator objects */ #include "Python.h" +#include "pycore_abstract.h" // _PyObject_HasLen() #include "pycore_call.h" // _PyObject_CallNoArgs() #include "pycore_object.h" // _PyObject_GC_TRACK() diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 9aba53d..e3769ce 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1,11 +1,11 @@ /* Type object implementation */ #include "Python.h" -#include "pycore_call.h" +#include "pycore_abstract.h" // _PySequence_IterSearch() +#include "pycore_call.h" // _PyObject_VectorcallTstate() #include "pycore_code.h" // CO_FAST_FREE #include "pycore_dict.h" // _PyDict_KeysSize() #include "pycore_frame.h" // _PyInterpreterFrame -#include "pycore_initconfig.h" // _PyStatus_OK() #include "pycore_long.h" // _PyLong_IsNegative() #include "pycore_memoryobject.h" // _PyMemoryView_FromBufferProc() #include "pycore_moduleobject.h" // _PyModule_GetDef() |