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
Gwenaël Samain
cython
Commits
4806fbd8
Commit
4806fbd8
authored
Jul 09, 2010
by
Craig Citro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix imports in Cython/Include/numpy.pxd.
parent
681dcbf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Cython/Includes/numpy.pxd
Cython/Includes/numpy.pxd
+4
-3
tests/run/type_inference.pyx
tests/run/type_inference.pyx
+3
-1
No files found.
Cython/Includes/numpy.pxd
View file @
4806fbd8
...
...
@@ -17,9 +17,10 @@
DEF
_buffer_format_string_len
=
255
cimport
cpython.buffer
as
pybuf
from
cpython
cimport
PyObject
,
Py_INCREF
,
Py_XDECREF
from
libc
cimport
stdlib
from
libc
cimport
stdio
from
cpython.ref
cimport
Py_INCREF
,
Py_XDECREF
from
cpython.object
cimport
PyObject
cimport
libc.stdlib
as
stdlib
cimport
libc.stdio
as
stdio
cdef
extern
from
"Python.h"
:
ctypedef
int
Py_intptr_t
...
...
tests/run/type_inference.pyx
View file @
4806fbd8
...
...
@@ -363,9 +363,11 @@ def safe_only():
assert
typeof
(
d
)
==
"long"
,
typeof
(
d
)
# we special-case inference to type str, see
# trac #
# trac #
553
s
=
"abc"
assert
typeof
(
s
)
==
"Python object"
,
typeof
(
s
)
cdef
str
t
=
"def"
assert
typeof
(
t
)
==
"str object"
,
typeof
(
t
)
# potentially overflowing arithmetic
e
=
1
...
...
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