Commit b5ab8f8a authored by gsamain's avatar gsamain Committed by Xavier Thompson

Amend basic test

parent ebd34dcc
......@@ -31,7 +31,7 @@ from libc.stdio cimport printf
# cdef class SomeMemory:
ccdef class SomeMemory:
cdef cypclass 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...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment