Commit 1640ce78 authored by Stefan Behnel's avatar Stefan Behnel

test case for ticket #462

parent 36836028
......@@ -7,3 +7,4 @@ numpy_ValueError_T172
unsignedbehaviour_T184
missing_baseclass_in_predecl_T262
cfunc_call_tuple_args_T408
cdef_methods_T462
cimport cython
cdef class cclass:
def test_self(self):
"""
>>> cclass().test_self()
'cclass'
"""
return cython.typeof(self)
def test_self_1(self, arg):
"""
>>> cclass().test_self_1(1)
('cclass', (1,))
"""
return cython.typeof(self), arg
def test_self_args(self, *args):
"""
>>> cclass().normal_test1_args(1,2,3)
('cclass', (1, 2, 3))
"""
return cython.typeof(self), args
def test_args(*args):
"""
>>> cclass().normal_test0_args(1,2,3):
("Python object", (1, 2, 3))
"""
return cython.typeof(args[0]), args[1:]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment