commit | fa4ac71dd6602347d80e4cdb71f3867fb63d3578 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Jul 10 17:37:30 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Jul 10 17:37:30 1998 +0000 |
tree | 3e2d2bd1f36093765fa1f81576c13b64e368211d | |
parent | bfc725bf64c1da301fe29b9722efc56e34799cf4 [diff] |
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.