• Guido van Rossum's avatar
    Small changes to map() and filter(): · fa4ac71d
    Guido van Rossum yazdı
    (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.
    fa4ac71d
bltinmodule.c 50.5 KB