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
41521d00
Commit
41521d00
authored
Dec 04, 2018
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test.pyx
parent
96411e75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
test.pyx
test.pyx
+5
-3
No files found.
test.pyx
View file @
41521d00
...
...
@@ -89,17 +89,19 @@ cdef int bar() nogil: # yet this is what we would like to
o
.
foo
()
# and we need method selection to be independent of libpython
o
.
foo1
(
2
)
o
.
a
=
1.0
return
0
return
o
.
a
cpdef
baz
():
"""
This method is both callable from python and pure "cython".
It can call both cdef methods and usual python functions
"""
bar
()
return
bar
()
def
bag
():
return
str
(
baz
())
# We call here a cpdef function, which calls a def function
# which then allocates cdef class SomeMemory
baz
(
)
print
(
bag
()
)
print
(
"done"
)
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