Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
ed4052f6
Commit
ed4052f6
authored
Aug 11, 2018
by
scoder
Committed by
GitHub
Aug 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2520 from jakirkham/add_dtype_typeobj
Add `typeobj` to `dtype`
parents
a2671fa2
c8f968f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cython/Includes/numpy/__init__.pxd
Cython/Includes/numpy/__init__.pxd
+2
-1
No files found.
Cython/Includes/numpy/__init__.pxd
View file @
ed4052f6
...
@@ -19,7 +19,7 @@ DEF _buffer_format_string_len = 255
...
@@ -19,7 +19,7 @@ DEF _buffer_format_string_len = 255
cimport
cpython.buffer
as
pybuf
cimport
cpython.buffer
as
pybuf
from
cpython.ref
cimport
Py_INCREF
,
Py_XDECREF
from
cpython.ref
cimport
Py_INCREF
,
Py_XDECREF
from
cpython.mem
cimport
PyObject_Malloc
,
PyObject_Free
from
cpython.mem
cimport
PyObject_Malloc
,
PyObject_Free
from
cpython.object
cimport
PyObject
from
cpython.object
cimport
PyObject
,
PyTypeObject
from
cpython.type
cimport
type
from
cpython.type
cimport
type
cimport
libc.stdio
as
stdio
cimport
libc.stdio
as
stdio
...
@@ -164,6 +164,7 @@ cdef extern from "numpy/arrayobject.h":
...
@@ -164,6 +164,7 @@ cdef extern from "numpy/arrayobject.h":
ctypedef
class
numpy
.
dtype
[
object
PyArray_Descr
]:
ctypedef
class
numpy
.
dtype
[
object
PyArray_Descr
]:
# Use PyDataType_* macros when possible, however there are no macros
# Use PyDataType_* macros when possible, however there are no macros
# for accessing some of the fields, so some are defined.
# for accessing some of the fields, so some are defined.
cdef
PyTypeObject
*
typeobj
;
cdef
char
kind
cdef
char
kind
cdef
char
type
cdef
char
type
# Numpy sometimes mutates this without warning (e.g. it'll
# Numpy sometimes mutates this without warning (e.g. it'll
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment