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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
49099dda
Commit
49099dda
authored
Nov 23, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make an old test from 'broken' directory usable
parent
846f0ec7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
tests/broken/r_extcmethod.pyx
tests/broken/r_extcmethod.pyx
+0
-28
No files found.
tests/broken/r_extcmethod.pyx
deleted
100644 → 0
View file @
846f0ec7
cdef
class
SpamDish
:
cdef
int
spam
cdef
void
describe
(
self
):
print
"This dish contains"
,
self
.
spam
,
"tons of spam."
cdef
class
FancySpamDish
(
SpamDish
):
cdef
int
lettuce
cdef
void
describe
(
self
):
print
"This dish contains"
,
self
.
spam
,
"tons of spam"
,
print
"and"
,
self
.
lettuce
,
"milligrams of lettuce."
cdef
void
describe_dish
(
SpamDish
d
):
d
.
describe
()
def
test
():
cdef
SpamDish
s
cdef
FancySpamDish
ss
s
=
SpamDish
()
s
.
spam
=
42
ss
=
FancySpamDish
()
ss
.
spam
=
88
ss
.
lettuce
=
5
describe_dish
(
s
)
describe_dish
(
ss
)
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