d = {}; d[0:1] = 1; d[0:1] = 2; print d[0:1]

Konrad Hinsen hinsen at cnrs-orleans.fr
Thu Mar 1 04:41:41 EST 2001


Robin Thomas <robin.thomas at starmedia.net> writes:

> The question remains: should slice objects be hashable/comparable so that
> 
>  >>> slice(0,1) == slice(0,1)
> 1
> 
> I say YES YES YES. What do you say?

Another YES YES YES. That's what anyone would expect in my opinion.
-- 
-------------------------------------------------------------------------------
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 Python-list mailing list