[docs] [issue21785] __getitem__ and __setitem__ try to be smart when invoked with negative slice indices

Konstantin Tretyakov report at bugs.python.org
Tue Jun 17 10:05:15 CEST 2014


Konstantin Tretyakov added the comment:

Aha, I see. I knew I'd get bitten by not explicitly subclassing (object) one day.

In any case, adding a reference to this issue into the docs of __getitem__ and __setitem__ would probably save someone some hours of utter confusion in the future.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21785>
_______________________________________


More information about the docs mailing list