From: Stefan Behnel Date: Mon, 16 Mar 2009 20:33:46 +0000 (+0100) Subject: test case for ticket 232 (without __new__ support) X-Git-Tag: 0.11.1.alpha~53 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cff8447feda0c9ef973b7faab8a9307015ab6094;p=cython.git test case for ticket 232 (without __new__ support) --- diff --git a/tests/bugs/ext_instance_type_T232.pyx b/tests/bugs/ext_instance_type_T232.pyx new file mode 100644 index 00000000..cee1a706 --- /dev/null +++ b/tests/bugs/ext_instance_type_T232.pyx @@ -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