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
Boxiang Sun
cython
Commits
6ae436ca
Commit
6ae436ca
authored
May 30, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 test fixes
parent
50fe035d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
tests/run/big_indices.pyx
tests/run/big_indices.pyx
+4
-4
tests/run/inplace.pyx
tests/run/inplace.pyx
+5
-1
No files found.
tests/run/big_indices.pyx
View file @
6ae436ca
...
...
@@ -12,10 +12,10 @@ def test():
cdef
long
neg
=
-
1
cdef
unsigned
long
pos
=
-
2
# will be a large positive number
print
"neg"
,
neg
print
"pos"
,
pos
print
u
"neg"
,
neg
print
u
"pos"
,
pos
D
=
{
neg
:
'neg'
,
pos
:
'pos'
}
D
=
{
neg
:
u'neg'
,
pos
:
u
'pos'
}
print
D
[
<
object
>
neg
]
print
D
[
<
object
>
pos
]
...
...
tests/run/inplace.pyx
View file @
6ae436ca
__doc__
=
u"""
>>> f(5, 7)
29509034655744
29509034655744
L
>>> g(13, 4)
32
...
...
@@ -9,6 +9,10 @@ __doc__ = u"""
105.0
"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u"L"
,
u""
)
def
f
(
a
,
b
):
a
+=
b
a
*=
b
...
...
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