Message215746
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? |
|
Date |
User |
Action |
Args |
2014-04-08 09:05:31 | akira | set | recipients:
+ akira, pitrou, r.david.murray |
2014-04-08 09:05:31 | akira | set | messageid: <1396947931.09.0.571136039508.issue21041@psf.upfronthosting.co.za> |
2014-04-08 09:05:31 | akira | link | issue21041 messages |
2014-04-08 09:05:30 | akira | create | |
|