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
Gwenaël Samain
cython
Commits
aa4de4f4
Commit
aa4de4f4
authored
Mar 13, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Amend basic test
parent
c923a985
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
test.pyx
test.pyx
+12
-8
No files found.
test.pyx
View file @
aa4de4f4
...
...
@@ -31,7 +31,7 @@ from libc.stdio cimport printf
# cdef class SomeMemory:
c
cdef
class
SomeMemory
:
c
def
cyp
class
SomeMemory
:
"""
This is a cdef class which is also called
a extensino type. It is a kind of C struct
...
...
@@ -45,24 +45,28 @@ ccdef class SomeMemory:
where all methods are "nogil" and memory
allocation does not depend on python runtime
"""
cdef
double
a
;
cdef
double
b
;
double
a
;
double
b
;
cdef
void
foo
(
self
)
nogil
:
void
__init__
(
double
a
,
double
b
):
this
.
a
=
a
this
.
b
=
b
void
foo
()
nogil
:
"""
It is possible to define native C/Cython methods
that release the GIL (cool...)
"""
self
.
a
=
self
.
b
this
.
a
=
this
.
b
cdef
void
foo1
(
self
,
int
a
)
nogil
:
void
foo1
(
int
a
)
nogil
:
"""
It is possible to define native C/Cython methods
that release the GIL (cool...)
"""
self
.
a
=
a
this
.
a
=
a
cdef
void
foo3
(
self
)
nogil
:
void
foo3
(
)
nogil
:
"""
It is possible to define native C/Cython methods
that release the GIL (cool...)
...
...
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