[BangPypers] nested list question

Srinivas Reddy Thatiparthy srinivas_thatiparthy at akebonosoft.com
Thu Jul 15 06:20:36 CEST 2010


I read from Python 2.6.3 docs that,copied from chm....

" Note that filter(function, iterable) is equivalent to [item for item in iterable if function(item)] if function is not None and [item for item in iterable if item] if function is None."

Since they said *equivalent* ,i thought both transform to same byte code.I missed the point that they are equal *logically*.



Regards,
Srini T.
--



More information about the BangPypers mailing list