akira added the comment:

>From https://docs.python.org/3/glossary.html#term-sequence

> An iterable which supports efficient element access using integer indices via 
> the __getitem__() special method and defines a __len__() method that returns 
> the length of the sequence.

.parents *is* a sequence. And it *is* confusing that it doesn't accept negative 
indexes -- that is how I've encountered the bug.

Antoine, could you elaborate on what are the negative consequences of negative 
indexes to justify breaking the expectations?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21041>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to