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
4ac6b279
Commit
4ac6b279
authored
Apr 04, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cypclass (basic) template test
parent
22448747
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
nogil_test/cypclass_test_templates.pyx
nogil_test/cypclass_test_templates.pyx
+16
-0
nogil_test/cypclass_test_templates_distutil.py
nogil_test/cypclass_test_templates_distutil.py
+15
-0
No files found.
nogil_test/cypclass_test_templates.pyx
0 → 100644
View file @
4ac6b279
cdef
cypclass
SomeMemory
[
T
,
U
]:
T
a
U
b
void
__init__
(
self
,
T
a
,
U
b
):
self
.
a
=
a
self
.
b
=
b
T
first
(
self
):
return
self
.
a
U
second
(
self
):
return
self
.
b
cpdef
bag
():
cdef
SomeMemory
[
int
,
double
]
o
=
SomeMemory
[
int
,
double
](
1
,
2.3
)
return
str
(
o
.
a
)
+
'
\
n
'
+
str
(
o
.
b
)
+
'
\
n
'
+
str
(
o
.
first
())
+
'
\
n
'
+
str
(
o
.
second
())
\ No newline at end of file
nogil_test/cypclass_test_templates_distutil.py
0 → 100644
View file @
4ac6b279
from
distutils.core
import
setup
from
distutils.extension
import
Extension
from
Cython.Build
import
cythonize
setup
(
ext_modules
=
cythonize
([
Extension
(
'cypclass_test_templates'
,
language
=
'c++'
,
sources
=
[
'cypclass_test_templates.pyx'
],
extra_compile_args
=
[
"-pthread"
,
"-std=c++11"
],
),
])
)
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