Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acthon
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
Gwenaël Samain
acthon
Commits
92a4c485
Commit
92a4c485
authored
Jun 11, 2019
by
Gwenael Samain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typecast example for result
parent
07a67da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
first_test.pyx
first_test.pyx
+3
-2
No files found.
first_test.pyx
View file @
92a4c485
...
...
@@ -34,8 +34,8 @@ cdef cypclass ResultInterface nolock:
pass
int
getIntResult
(
self
):
pass
#
int __int__(self):
# pass
int
__int__
(
self
):
return
self
.
getIntResult
()
ctypedef
deque
[
MessageInterface
]
message_queue_t
...
...
@@ -292,6 +292,7 @@ cpdef test():
print
(
result_object
.
getIntResult
())
print
(
"Trying to access to res_before: this works"
)
print
(
res_before
.
getIntResult
())
print
(
<
int
>
res_before
)
# Fourth pass: just to check we trigger the empty queue message
active_object
.
_active_queue
.
activate
()
...
...
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