diff options
author | Guido van Rossum <guido@python.org> | 1998-07-10 17:37:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-07-10 17:37:30 (GMT) |
commit | fa4ac71dd6602347d80e4cdb71f3867fb63d3578 (patch) | |
tree | 3e2d2bd1f36093765fa1f81576c13b64e368211d /Python/thread_nt.h | |
parent | bfc725bf64c1da301fe29b9722efc56e34799cf4 (diff) | |
download | cpython-fa4ac71dd6602347d80e4cdb71f3867fb63d3578.zip cpython-fa4ac71dd6602347d80e4cdb71f3867fb63d3578.tar.gz cpython-fa4ac71dd6602347d80e4cdb71f3867fb63d3578.tar.bz2 |
Small changes to map() and filter():
(1) If a sequence S is shorter than len(S) indicated, don't fail --
just use the shorter size. (I.e, len(S) is just a hint.)
(2) Implement the special case map(None, S) as list(S) -- it's faster.
Diffstat (limited to 'Python/thread_nt.h')
0 files changed, 0 insertions, 0 deletions