blob: 621fc565fc99453d7ec9f28a3a8b9cd49ed5e161 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# cython: binding=True
# mode: run
# tag: cyfunction
cdef class TestMethodOneArg:
def meth(self, arg):
pass
def call_meth(x):
"""
>>> call_meth(TestMethodOneArg())
Traceback (most recent call last):
...
TypeError: meth() takes exactly one argument (0 given)
"""
return x.meth()
|