From: Robert Bradshaw Date: Sun, 3 Aug 2008 00:16:52 +0000 (-0700) Subject: public attribute fix X-Git-Tag: 0.9.8.1~102 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f0d5ffd79b3732fd55cdda157bc2c1998bf382e1;p=cython.git public attribute fix --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 8046b4ff..ec07ae86 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -627,7 +627,7 @@ class CVarDefNode(StatNode): # need_properties [entry] child_attrs = ["base_type", "declarators"] - need_properties = [] + need_properties = () def analyse_declarations(self, env, dest_scope = None): if not dest_scope: @@ -639,6 +639,7 @@ class CVarDefNode(StatNode): and self.visibility == 'public' and base_type.is_pyobject and (base_type.is_builtin_type or base_type.is_extension_type)): + self.need_properties = [] need_property = True visibility = 'private' else: