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
6fa71c3f
Commit
6fa71c3f
authored
May 05, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent test from depending on repr(long) in Py2.
parent
e1eb0a1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
tests/run/numpy_attributes.pyx
tests/run/numpy_attributes.pyx
+7
-4
No files found.
tests/run/numpy_attributes.pyx
View file @
6fa71c3f
...
@@ -19,7 +19,7 @@ cnp.import_array()
...
@@ -19,7 +19,7 @@ cnp.import_array()
)
)
def
access_shape
():
def
access_shape
():
"""
"""
>>>
access_shape(
)
>>>
print(access_shape()
)
10
10
"""
"""
cdef
cnp
.
ndarray
[
double
,
ndim
=
2
,
mode
=
'c'
]
array_in
=
\
cdef
cnp
.
ndarray
[
double
,
ndim
=
2
,
mode
=
'c'
]
array_in
=
\
...
@@ -37,7 +37,7 @@ def access_shape():
...
@@ -37,7 +37,7 @@ def access_shape():
)
)
def
access_size
():
def
access_size
():
"""
"""
>>>
access_size(
)
>>>
print(access_size()
)
100
100
"""
"""
cdef
cnp
.
ndarray
[
double
,
ndim
=
2
,
mode
=
'c'
]
array_in
=
\
cdef
cnp
.
ndarray
[
double
,
ndim
=
2
,
mode
=
'c'
]
array_in
=
\
...
@@ -56,8 +56,11 @@ def access_size():
...
@@ -56,8 +56,11 @@ def access_size():
)
)
def
access_strides
():
def
access_strides
():
"""
"""
>>> access_strides()
>>> x, y = access_strides()
(80, 8)
>>> print(x)
80
>>> print(y)
8
"""
"""
cdef
cnp
.
ndarray
[
double
,
ndim
=
2
,
mode
=
'c'
]
array_in
=
\
cdef
cnp
.
ndarray
[
double
,
ndim
=
2
,
mode
=
'c'
]
array_in
=
\
1e10
*
np
.
ones
((
10
,
10
),
dtype
=
np
.
float64
)
1e10
*
np
.
ones
((
10
,
10
),
dtype
=
np
.
float64
)
...
...
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