alwayssortedlist (was Re: On PEP 322 (ireverse))
Michael Hudson
mwh at python.net
Thu Oct 30 11:15:11 EST 2003
Alex Martelli <aleax at aleax.it> writes:
> For an always-sorted list, this clearly means: replace the currently
> sixth-lowest item with the value 20. More generally, a[i] always
> means "the (i+1)-th lowest item" -- referencing it no doubt going
> to be useful much more often than replacing it, and value of i
> different from the extremes (say 0, 1, -1) are going to be rare.
> But, so what?
Oh, yow. Typing
a[5] = 20
and then having
a[5] != 20
is just icky. Find another notation.
Cheers,
mwh
--
The only problem with Microsoft is they just have no taste.
-- Steve Jobs, (From _Triumph of the Nerds_ PBS special)
and quoted by Aahz on comp.lang.python
More information about the Python-list
mailing list