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
849bbd29
Commit
849bbd29
authored
Apr 12, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cypclass test distutil & doctest: __new__
parent
1240a8e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
nogil_test/cypclass_test___new__.pyx
nogil_test/cypclass_test___new__.pyx
+12
-0
No files found.
nogil_test/cypclass_test___new__.pyx
View file @
849bbd29
# mode: run
# distutils: language=c++
# distutils: extra_compile_args=-std=c++11
# tag: cpp
# This is extremely hacky
# This is extremely hacky
cdef
extern
from
"Python.h"
:
cdef
extern
from
"Python.h"
:
struct
CyObject
"CyObject"
struct
CyObject
"CyObject"
...
@@ -71,4 +76,11 @@ cdef double baa():
...
@@ -71,4 +76,11 @@ cdef double baa():
return
o
return
o
cpdef
bag
():
cpdef
bag
():
"""
>>> bag()
-1
3
32
6.8
"""
return
str
(
foo
())
+
'
\
n
'
+
str
(
bar
())
+
'
\
n
'
+
str
(
baz
())
+
'
\
n
'
+
str
(
baa
())
return
str
(
foo
())
+
'
\
n
'
+
str
(
bar
())
+
'
\
n
'
+
str
(
baz
())
+
'
\
n
'
+
str
(
baa
())
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