OILS
/
opy
/
_regtest
/
src
/
opy
/
tests
/ genexpr_simple.py
View on Github
|
oilshell.org
12 lines, 3 significant
1
#!/usr/bin/env python
2
"""
3
Simpler test for generator expressions.
4
"""
5
6
def MakeLookup(p):
7
return list(i for i in p)
8
#return list([i for i in p])
9
10
print(MakeLookup([66]))
11
# This runs but prints []
12
#print(MakeLookup([1,2]))