Commit da4d23c
authored
README.rst: Fix a bug in Python code
`map()` returned a list in Python 2 but returns a generator in Python 3.
```python
>>> planes = ('', 'a', 'ab', 'abc')
>>> map(len, planes)
<map object at 0x1031e74c0>
>>> [len(plane) for plane in planes]
[0, 1, 2, 3]
```1 parent 0b65d6a commit da4d23c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
0 commit comments