Commit 4806fbd8 authored by Craig Citro's avatar Craig Citro

Fix imports in Cython/Include/numpy.pxd.

parent 681dcbf4
...@@ -17,9 +17,10 @@ ...@@ -17,9 +17,10 @@
DEF _buffer_format_string_len = 255 DEF _buffer_format_string_len = 255
cimport cpython.buffer as pybuf cimport cpython.buffer as pybuf
from cpython cimport PyObject, Py_INCREF, Py_XDECREF from cpython.ref cimport Py_INCREF, Py_XDECREF
from libc cimport stdlib from cpython.object cimport PyObject
from libc cimport stdio cimport libc.stdlib as stdlib
cimport libc.stdio as stdio
cdef extern from "Python.h": cdef extern from "Python.h":
ctypedef int Py_intptr_t ctypedef int Py_intptr_t
......
...@@ -363,9 +363,11 @@ def safe_only(): ...@@ -363,9 +363,11 @@ def safe_only():
assert typeof(d) == "long", typeof(d) assert typeof(d) == "long", typeof(d)
# we special-case inference to type str, see # we special-case inference to type str, see
# trac # # trac #553
s = "abc" s = "abc"
assert typeof(s) == "Python object", typeof(s) assert typeof(s) == "Python object", typeof(s)
cdef str t = "def"
assert typeof(t) == "str object", typeof(t)
# potentially overflowing arithmetic # potentially overflowing arithmetic
e = 1 e = 1
......
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