Chris Angelico writes:

> And yeah, the import is an option, but if I'm trying to explain stuff
> to people, it's usually easier to grab a genexp (full flexibility, but
> the complexity) than to play around with importing. When the function
> you want exists and returns true for the things you want, filter() has
> a big win; for any other situation, it's not worth reaching to
> itertools for a specific solution when the generic one will cover this
> and every other case.

True. Filtering is so simple.

The big win for me has been itertools.groupby. The other stuff I mostly
play with for amusement. But hey, nothing frivolous in amusement!
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to