projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2721708
)
extended test case
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 11 Nov 2010 06:48:55 +0000
(07:48 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 11 Nov 2010 06:48:55 +0000
(07:48 +0100)
tests/run/cython3.pyx
patch
|
blob
|
history
diff --git
a/tests/run/cython3.pyx
b/tests/run/cython3.pyx
index 0c59349cf60d5b2c8abe1f8ac7b2d2b6a6abacc8..7c1c3455814d14afd62ef9ee640b26fb8848fb62 100644
(file)
--- a/
tests/run/cython3.pyx
+++ b/
tests/run/cython3.pyx
@@
-57,6
+57,13
@@
def list_comp():
assert x == 'abc' # don't leak in Py3 code
return result
+def list_comp_unknown_type(l):
+ """
+ >>> list_comp_unknown_type(range(5))
+ [0, 4, 8]
+ """
+ return [x*2 for x in l if x % 2 == 0]
+
def set_comp():
"""
>>> sorted(set_comp())