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
Boxiang Sun
cython
Commits
68336b38
Commit
68336b38
authored
Feb 02, 2017
by
Robert Bradshaw
Committed by
GitHub
Feb 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1596 from quantopian/cxx-fixes
C++ fixes
parents
d92a718a
c7f374b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Cython/Build/IpythonMagic.py
Cython/Build/IpythonMagic.py
+1
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+1
-1
No files found.
Cython/Build/IpythonMagic.py
View file @
68336b38
...
...
@@ -257,7 +257,7 @@ class CythonMagics(Magics):
if
need_cythonize
:
c_include_dirs
=
args
.
include
c_src_files
=
map
(
str
,
args
.
src
)
c_src_files
=
list
(
map
(
str
,
args
.
src
)
)
if
'numpy'
in
code
:
import
numpy
c_include_dirs
.
append
(
numpy
.
get_include
())
...
...
Cython/Compiler/PyrexTypes.py
View file @
68336b38
...
...
@@ -4102,7 +4102,7 @@ def best_match(arg_types, functions, pos=None, env=None, args=None):
[
pattern
.
type
.
deduce_template_params
(
actual
)
for
(
pattern
,
actual
)
in
zip
(
func_type
.
args
,
arg_types
)],
{})
if
deductions
is
None
:
errors
.
append
((
func
,
"Unable to deduce type parameters for %s given
%s"
%
(
pattern
.
type
,
actual
)))
errors
.
append
((
func
,
"Unable to deduce type parameters for %s given
(%s)"
%
(
func_type
,
', '
.
join
(
map
(
str
,
arg_types
))
)))
elif
len
(
deductions
)
<
len
(
func_type
.
templates
):
errors
.
append
((
func
,
"Unable to deduce type parameter %s"
%
(
", "
.
join
([
param
.
name
for
param
in
set
(
func_type
.
templates
)
-
set
(
deductions
.
keys
())]))))
...
...
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