Serhiy Storchaka added the comment:

I afraid that the patch can change computational complexity. The iteration 
usually has linear complexity, but indexing can has non-constant complexity. 
E.g. for linked list it will cause quadratic complexity of index(). May be we 
should have special case for start=0 and stop=None. And document this.

----------
nosy: +serhiy.storchaka
stage:  -> patch review
type:  -> enhancement

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

Reply via email to