projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c478f4
)
be a little more conservative in the last change
author
Stefan Behnel
<scoder@users.berlios.de>
Mon, 4 May 2009 15:47:57 +0000
(17:47 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Mon, 4 May 2009 15:47:57 +0000
(17:47 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index f248af97e56eb85467e298d3ba9ca20567ba91ba..5b61722406b37a4c7a569ae6713e06d7b677a7dc 100644
(file)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-2002,7
+2002,8
@@
class SliceIndexNode(ExprNode):
def analyse_target_types(self, env):
self.analyse_types(env)
# when assigning, we must accept any Python type
- self.type = py_object_type
+ if self.type.is_pyobject:
+ self.type = py_object_type
def analyse_types(self, env):
self.base.analyse_types(env)