projects
/
cython.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Partial merge of trunk progress. Some tests still fail.
[cython.git]
/
tests
/
run
/
r_typecast.pyx
1
cdef class ExtType:
2
cdef c_method(self):
3
return self
4
5
def method(self):
6
return 1
7
8
def call_method(ExtType et):
9
"""
10
>>> call_method( ExtType() ).method()
11
1
12
"""
13
return <ExtType>et.c_method()