Mercurial > cpython-lru_cache-weakref
comparison Python/getargs.c @ 8661:30fbf18af29e legacy-trunk
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.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 10 Jul 1998 17:37:30 +0000 |
| parents | da4bdceeaad7 |
| children | bd47ee068b83 |
comparison
equal
deleted
inserted
replaced
| 8660:de759aca10b2 | 8661:30fbf18af29e |
|---|
