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
Gwenaël Samain
cython
Commits
82ca1aff
Commit
82ca1aff
authored
Jul 03, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cython submodule cimport test
parent
ff0b1b1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tests/run/unop_extras.pyx
tests/run/unop_extras.pyx
+5
-3
No files found.
tests/run/unop_extras.pyx
View file @
82ca1aff
cimport
cython.operator
from
cython.operator
cimport
dereference
from
cython.operator
cimport
dereference
as
deref
def
test_deref
(
int
x
):
"""
>>> test_deref(3)
3
(3, 3, 3)
>>> test_deref(5)
5
(5, 5, 5)
"""
cdef
int
*
x_ptr
=
&
x
return
cython
.
operator
.
dereference
(
x_ptr
)
return
cython
.
operator
.
dereference
(
x_ptr
)
,
dereference
(
x_ptr
),
deref
(
x_ptr
)
def
increment_decrement
(
int
x
):
"""
...
...
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