Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/doc/REVIEW2.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ def items(x, depth=-1):
for z in items(y, depth+1):
yield z
else:
yield _,x
yield _,x

out = []
for _,x in items( [10,[ 20,30],
40,
[ ( 50,60,70),
[ 80,90,100],110]]):
out += [x]
return out
print out
```

1c. Repeat the above, this time using _list comprehensions_.
Expand Down Expand Up @@ -64,7 +64,7 @@ def lines(string):
else:
tmp += ch
if tmp:
yield tmp
yield tmp
```

### 2. Dunders
Expand All @@ -87,6 +87,7 @@ class o:
was deleted?

```python
from __future__ import division
r = random.random
rseed = random.seed

Expand Down