Status of PEP's?
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon Mar 4 23:48:39 EST 2002
James_Althoff at i2.com wrote:
>
> Just keep in mind that indici/indices/indexes-type proposals don't help in
> cases where __len__ is not defined. Two-dimensional structures, for
> example.
It does if we define an __indices__ protocol to
go with it. First look for __indices__, then fall
back on __len__.
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list