"filtered view" upon lists?
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Tue Sep 12 13:26:46 EDT 2006
Wildemar Wildenburger:
> I sort of wanted to avoid these. Though my lists shouldn't terribly
> long, so performance is not an issue so much. I simply want to avoid
> having two datasets that I have to sync. Major pain, I believe.
Note that if you just have to scan the "view list", then you can use
the lazy:
itertool.ifilter(predicate, iterable)
Bye,
bearophile
More information about the Python-list
mailing list