mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-132776: Revert Moving memoryview XIData Code to memoryobject.c (gh-132960)
This is a partial revert of gh-132821. It resolves the refleak introduced by that PR.
This commit is contained in:
parent
622176513e
commit
2a28b21a51
8 changed files with 284 additions and 339 deletions
|
@ -8,17 +8,6 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
struct _memoryobject_state {
|
||||
PyTypeObject *XIBufferViewType;
|
||||
};
|
||||
|
||||
extern PyStatus _PyMemoryView_InitTypes(PyInterpreterState *);
|
||||
extern void _PyMemoryView_FiniTypes(PyInterpreterState *);
|
||||
|
||||
// exported for _interpreters module
|
||||
PyAPI_FUNC(PyTypeObject *) _PyMemoryView_GetXIBuffewViewType(void);
|
||||
|
||||
|
||||
extern PyTypeObject _PyManagedBuffer_Type;
|
||||
|
||||
PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue