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
59cbd0ad
Commit
59cbd0ad
authored
Jun 12, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 test fix
parent
a40b2664
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
tests/run/classbody_exec.pyx
tests/run/classbody_exec.pyx
+7
-3
No files found.
tests/run/classbody_exec.pyx
View file @
59cbd0ad
__doc__
=
u"""
__doc__
=
u"""
>>> print
D
>>> print
(D)
{'answer': (42, 42)}
{
u
'answer': (42, 42)}
"""
"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u"u'"
,
u"'"
)
D
=
{}
D
=
{}
def
foo
(
x
):
def
foo
(
x
):
...
@@ -10,4 +14,4 @@ def foo(x):
...
@@ -10,4 +14,4 @@ def foo(x):
cdef
class
Spam
:
cdef
class
Spam
:
answer
=
42
answer
=
42
D
[
'answer'
]
=
foo
(
answer
)
D
[
u
'answer'
]
=
foo
(
answer
)
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