projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6efb9a
)
extended test case
author
Stefan Behnel
<scoder@users.berlios.de>
Mon, 26 May 2008 21:18:31 +0000
(23:18 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Mon, 26 May 2008 21:18:31 +0000
(23:18 +0200)
tests/run/extclassbody.pyx
patch
|
blob
|
history
diff --git
a/tests/run/extclassbody.pyx
b/tests/run/extclassbody.pyx
index 7f233b98999a470136f6208aca28767172758b3e..0673782f99871437ec4ac3d77caf374813965c5a 100644
(file)
--- a/
tests/run/extclassbody.pyx
+++ b/
tests/run/extclassbody.pyx
@@
-1,18
+1,20
@@
__doc__ = u"""
>>> s = Spam()
>>> s.a
-1
+2
>>> s.c
3
>>> s.test(5)
-8
+13
>>> s.b
-3
+5
"""
cdef class Spam:
a = 1
def test(self, a):
- return a + self.c
- b = a + 2
- c = 3
+ return a + self.b + self.c
+ b = a + 2 # 3
+ a = b - 1 # 2
+ c = 3 # 3
+ b = c + a # 5