terminological obscurity
Grant Edwards
grante at visi.com
Fri May 21 17:36:13 EDT 2004
On 2004-05-21, Donn Cave <donn at u.washington.edu> wrote:
>> For example, why shouldn't index() find an object in a
>> non-homogeneous sequence? Either the object is in the sequence or
>> it's not. If it is, there is an index that corresponds to it.
>
> For example,
> tm = time.localtime(time.time())
> i = tm.index(5)
>
> What would that mean?
>
> It's absurd to search for the location of a value in a tuple,
> because the values don't have any meaning independent of their
> location.
OK, I see what you mean. That brings up the question of why
use integer indexes to access members of of a group of objects
when the order of the objects is meaningless?
--
Grant Edwards grante Yow! Do you guys know we
at just passed thru a BLACK
visi.com HOLE in space?
More information about the Python-list
mailing list