[Numpy-discussion] Re: Numpy-discussion digest, Vol 1 #406 - 13 msgs

Konrad Hinsen hinsen at cnrs-orleans.fr
Thu Mar 7 02:42:02 CST 2002


> 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: hinsen at cnrs-orleans.fr
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
-------------------------------------------------------------------------------




More information about the Numpy-discussion mailing list