renaming in testcase, 'mutable' is a C++ keyword.
authorLisandro Dalcin <dalcinl@gmail.com>
Sat, 16 May 2009 23:28:44 +0000 (20:28 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Sat, 16 May 2009 23:28:44 +0000 (20:28 -0300)
tests/run/typedfieldbug_T303.pyx

index 40245cb3708d1c805546b737efc2af8895106a10..d892b8ec5446473f5294a9ad61a2560aaec0d4c7 100644 (file)
@@ -15,16 +15,16 @@ cdef class MyClass:
         double var_d
         DoubleTypedef var_nf
     cdef public:
-        DoubleTypedef mutable
+        DoubleTypedef var_mutable
     def __init__(self):
         self.var_d = 42.0
         self.var_nf = 42.0
-        self.mutable = 1
+        self.var_mutable = 1
 
 def f():
     c = MyClass()
-    c.mutable = 42.0
-    print c.var_d, c.var_nf, c.mutable
+    c.var_mutable = 42.0
+    print c.var_d, c.var_nf, c.var_mutable
 
 def readonly():
     c = MyClass()