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
Xavier Thompson
cython
Commits
1752ae4e
Commit
1752ae4e
authored
5 years ago
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cypclass typecast unit test
parent
a9e92a10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
nogil_test/cypclass_test_typecast.pyx
nogil_test/cypclass_test_typecast.pyx
+14
-0
nogil_test/cypclass_test_typecast_distutil.py
nogil_test/cypclass_test_typecast_distutil.py
+15
-0
No files found.
nogil_test/cypclass_test_typecast.pyx
0 → 100644
View file @
1752ae4e
cdef
cypclass
SomeMemory
:
int
a
unsigned
int
__unsigned_int__
(
self
):
return
<
unsigned
int
>
self
.
a
int
__int__
(
self
):
return
self
.
a
cpdef
bag
():
cdef
SomeMemory
o
=
SomeMemory
()
o
.
a
=
-
1
return
str
(
<
int
>
o
)
+
'
\
n
'
+
str
(
<
unsigned
int
>
o
)
This diff is collapsed.
Click to expand it.
nogil_test/cypclass_test_typecast_distutil.py
0 → 100644
View file @
1752ae4e
from
distutils.core
import
setup
from
distutils.extension
import
Extension
from
Cython.Build
import
cythonize
setup
(
ext_modules
=
cythonize
([
Extension
(
'cypclass_test_typecast'
,
language
=
'c++'
,
sources
=
[
'cypclass_test_typecast.pyx'
],
extra_compile_args
=
[
"-pthread"
,
"-std=c++11"
],
),
])
)
This diff is collapsed.
Click to expand it.
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