projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a6bcfc
)
disable type inference for closure variables as it currently breaks the closure class...
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 20 Mar 2010 10:43:45 +0000
(11:43 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 20 Mar 2010 10:43:45 +0000
(11:43 +0100)
Cython/Compiler/Symtab.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Symtab.py
b/Cython/Compiler/Symtab.py
index 33edc8134a9bf02796dff97bcd29e436ce7dd336..c9fc760b418ca32760bcfac376e20fb5b380a925 100644
(file)
--- a/
Cython/Compiler/Symtab.py
+++ b/
Cython/Compiler/Symtab.py
@@
-1403,6
+1403,8
@@
class CClassScope(ClassScope):
def declare_var(self, name, type, pos,
cname = None, visibility = 'private', is_cdef = 0):
+ if type is unspecified_type:
+ type = py_object_type
if is_cdef:
# Add an entry for an attribute.
if self.defined:
@@
-1440,8
+1442,6
@@
class CClassScope(ClassScope):
"Non-generic Python attribute cannot be exposed for writing from Python")
return entry
else:
- if type is unspecified_type:
- type = py_object_type
# Add an entry for a class attribute.
entry = Scope.declare_var(self, name, type, pos,
cname, visibility, is_cdef)