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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
40b88467
Commit
40b88467
authored
Oct 28, 2017
by
Nils Braun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Special handling for pythran expr in index nodes: return a pythran expr
parent
9b8ac2af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+4
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
40b88467
...
...
@@ -3450,6 +3450,10 @@ class IndexNode(_IndexingBaseNode):
if
index_func
is
not
None
:
return
index_func
.
type
.
return_type
if
is_pythran_expr
(
base_type
)
and
is_pythran_expr
(
index_type
):
index_with_type
=
(
self
.
index
,
index_type
)
return
PythranExpr
(
pythran_indexing_type
(
base_type
,
[
index_with_type
]))
# may be slicing or indexing, we don't know
if
base_type
in
(
unicode_type
,
str_type
):
# these types always returns their own type on Python indexing/slicing
...
...
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