Summary
Shortlog
Changelog
Graph
Tags
Bookmarks
Branches
Files
Help
Search
Lichen
tests/listcomp.py
303:c07a749f5bd0
2:3dff1f10598f
2016-12-02
Paul Boddie
raw
annotate
files
changeset
graph
Use __data__ attributes with native functions apart from when __data__ needs replacing (such as in the list append and concatenation functions).
1
def
f
(
l
,
y
):
2
return
[
x
for
x
in
l
if
x
>
y
]
3
4
result
=
f
([
1
,
2
,
3
],
2
)