From: Konrad H. <hi...@cn...> - 2002-03-07 10:41:29
|
> How do the new Iterator mechanisms now active in Python 2.2 play into > these ideas of indexing objects? Can we get these kinds of slices by > providing appropriate iterator objects and references? An iterator needs to be called for each element, which is probably too slow for a general "extended indexing" solution. But an iterator yielding boolean values could perhaps be a useful class of index object in some cases. Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hi...@cn... Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- |