Commit ed4052f6 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #2520 from jakirkham/add_dtype_typeobj

Add `typeobj` to `dtype`
parents a2671fa2 c8f968f8
......@@ -19,7 +19,7 @@ DEF _buffer_format_string_len = 255
cimport cpython.buffer as pybuf
from cpython.ref cimport Py_INCREF, Py_XDECREF
from cpython.mem cimport PyObject_Malloc, PyObject_Free
from cpython.object cimport PyObject
from cpython.object cimport PyObject, PyTypeObject
from cpython.type cimport type
cimport libc.stdio as stdio
......@@ -164,6 +164,7 @@ cdef extern from "numpy/arrayobject.h":
ctypedef class numpy.dtype [object PyArray_Descr]:
# Use PyDataType_* macros when possible, however there are no macros
# for accessing some of the fields, so some are defined.
cdef PyTypeObject* typeobj;
cdef char kind
cdef char type
# Numpy sometimes mutates this without warning (e.g. it'll
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment