changing the List's behaviour?
meinrad recheis
meinrad.recheis at gmx.at
Sun Jul 27 16:41:43 EDT 2003
hi pythoneers
i am very annoyed by the List's index out of bouds exception
it forces me to complicate my code by adding length checking
i might be spoilt by Ruby which returns nil for not existing indices.
i want to change the List so that it returns None if the index for
accesssing list elements
is out of bound.
i am not very experienced in python, so i ask you for suggestions.
thanks in advance,
Meinrad Recheis
More information about the Python-list
mailing list