A permutation on permutations

Kragen Sitaker kragen at canonical.org
Mon Nov 26 14:02:11 EST 2001


"Jeff Hinrichs" <jlh at home.com> writes:
> Sorry for naiveté but wouldn't this be a candidate for a filter?

Sure.

> I'm just learning python and diveintopython.org has a section on filters
> that looks as if this question was made for it.
> http://diveintopython.org/regression_filter.html

Yep.  You'll see the list comprehension construct at the end of that
article is what I suggested.

> From: "Kragen Sitaker" <kragen at canonical.org>
> > to say for p in t[:]: instead of for p in t[:], but I'd probably say

I meant 'instead of for p in t:' --- sorry.




More information about the Python-list mailing list