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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
b5ab8f8a
Commit
b5ab8f8a
authored
Mar 13, 2019
by
gsamain
Committed by
Xavier Thompson
Jun 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Amend basic test
parent
ebd34dcc
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 @
b5ab8f8a
...
...
@@ -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