test case for ticket 232 (without __new__ support)
authorStefan Behnel <scoder@users.berlios.de>
Mon, 16 Mar 2009 20:33:46 +0000 (21:33 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 16 Mar 2009 20:33:46 +0000 (21:33 +0100)
tests/bugs/ext_instance_type_T232.pyx [new file with mode: 0644]

diff --git a/tests/bugs/ext_instance_type_T232.pyx b/tests/bugs/ext_instance_type_T232.pyx
new file mode 100644 (file)
index 0000000..cee1a70
--- /dev/null
@@ -0,0 +1,14 @@
+__doc__ = u"""
+>>> set_attr(5)
+>>> get_attr()
+None
+"""
+
+cdef class MyExt:
+    cdef object attr
+
+def set_attr(value):
+    MyExt().attr = value
+
+def get_attr():
+    return MyExt().attr