Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
0aaf087b
Commit
0aaf087b
authored
Oct 10, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing CFuncConvert.pyx
parent
3b334601
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
Cython/Utility/CFuncConvert.pyx
Cython/Utility/CFuncConvert.pyx
+21
-0
No files found.
Cython/Utility/CFuncConvert.pyx
0 → 100644
View file @
0aaf087b
#################### cfunc.to_py ####################
cdef
extern
from
*
:
ctypedef
struct
PyObject
ctypedef
struct
PyTypeObject
cdef
bint
__Pyx_TypeTest
(
PyObject
*
,
PyTypeObject
*
type
)
except
0
{{
for
arg
in
args
}}
{{
arg
.
declare_type_def
()}}
{{
arg
.
declare_type_convert
()}}
{{
endfor
}}
{{
declare_return_type
}}
{{
declare_return_type_convert
}}
@
cname
(
"{{cname}}"
)
cdef
object
{{
cname
}}({{
return_type
}}
(
*
f
)({{
', '
.
join
(
arg
.
type_name
for
arg
in
args
)}})
{{
except_clause
}}):
def
wrap
({{
', '
.
join
(
arg
.
name
for
arg
in
args
)}}):
{{
for
arg
in
args
}}
{{
arg
.
check_type
()}}
{{
endfor
}}
{{
maybe_return
}}
(
f
({{
', '
.
join
(
'%s(%s)'
%
(
arg
.
type_convert
,
arg
.
name
)
for
arg
in
args
)}}))
return
wrap
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment