projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99b3b9f
)
test case fix
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 18 May 2008 10:25:54 +0000
(12:25 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 18 May 2008 10:25:54 +0000
(12:25 +0200)
tests/run/append.pyx
patch
|
blob
|
history
diff --git
a/tests/run/append.pyx
b/tests/run/append.pyx
index 29575aa3f17e9b6dba90c704cf5bed4ee4c4bb57..b73939d331a6e7eaedeb9190e3274e6eda23c84e 100644
(file)
--- a/
tests/run/append.pyx
+++ b/
tests/run/append.pyx
@@
-21,16
+21,19
@@
None
[1, 2, (3, 4), 5, 6]
"""
+cdef extern from "Python.h":
+ ctypedef class __builtin__.list [ object PyListObject ]:
+ pass
+
class A:
def append(self, x):
print u"appending"
return x
-class B(list):
+c
def c
lass B(list):
def append(self, *args):
- append = super(B, self).append
for arg in args:
-
append(
arg)
+
list.append(self,
arg)
def test_append(L):
print L.append(1)