From: Stefan Behnel Date: Sat, 20 Mar 2010 12:23:58 +0000 (+0100) Subject: reverted last commit, isn't enough to fix this X-Git-Tag: 0.13.beta0~2^2~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a643524d440141fce34638c2c953f88526d49f7d;p=cython.git reverted last commit, isn't enough to fix this --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index c9fc760b..33edc813 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -1403,8 +1403,6 @@ 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: @@ -1442,6 +1440,8 @@ 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)