pythonian way

Warren Postma embed at geocities.com
Fri Feb 25 10:04:01 EST 2000


Moshe spake:
>
> Here's a version that works:
>
> A = filter(lambda x: x != '\n', H.readlines())
>

Hey, that's the first actually Useful-Use-of-Lambda I've seen! :-)


Warren





More information about the Python-list mailing list