mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
GH-115776: Embed the values array into the object, for "normal" Python objects. (GH-116115)
This commit is contained in:
parent
c97d3af239
commit
c32dc47aca
35 changed files with 787 additions and 537 deletions
|
@ -2820,6 +2820,9 @@ static int
|
|||
_testbuffer_exec(PyObject *mod)
|
||||
{
|
||||
Py_SET_TYPE(&NDArray_Type, &PyType_Type);
|
||||
if (PyType_Ready(&NDArray_Type)) {
|
||||
return -1;
|
||||
}
|
||||
if (PyModule_AddType(mod, &NDArray_Type) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue