]> granicus.if.org Git - python/commit
Use generator instead of list in code examples (GH-11203)
authorRecursing <buonanno.lorenzo@gmail.com>
Sun, 23 Dec 2018 03:48:14 +0000 (04:48 +0100)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Sun, 23 Dec 2018 03:48:14 +0000 (19:48 -0800)
commit3ce3dea60646d8a5a1c952469a2eb65f937875b3
tree145d309073b9d7db0e48a2f0e13822c4a7374492
parentfc8284e22074af8154e9865c8391b955f13a308b
Use generator instead of list in code examples (GH-11203)

There is no need to create a list for `sum`
Also, becomes consistent with the first example in Doc/library/os.rst
Lib/os.py