Why Python does *SLICING* the way it does??

Björn Lindström bkhl at stp.ling.uu.se
Thu Apr 28 11:31:11 EDT 2005


Antoon Pardon <apardon at forel.vub.ac.be> writes:

> The problem is that the fields in lst are associated
> with a number that is off by one as they are normally
> counted. If I go and ask my colleague which field
> contains some specific data and he answers:
> the 5th, I have to remind my self I want lst[4]
>
> This is often a cause for errors.

It sounds like you should wrap that list in an object more reminding of
the source data, then.

-- 
Björn Lindström <bkhl at stp.ling.uu.se>
Student of computational linguistics, Uppsala University, Sweden



More information about the Python-list mailing list