public attribute fix
authorRobert Bradshaw <robertwb@math.washington.edu>
Sun, 3 Aug 2008 00:16:52 +0000 (17:16 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sun, 3 Aug 2008 00:16:52 +0000 (17:16 -0700)
Cython/Compiler/Nodes.py

index 8046b4ff21a24213515b10015922d0aa802960b6..ec07ae86150618dcd1c693a70415f2df125fd542 100644 (file)
@@ -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: