Author serhiy.storchaka
Recipients Devin Jeanpierre, docs@python, rhettinger, serhiy.storchaka, veky
Date 2016-09-21.15:28:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474471734.99.0.597809378781.issue28197@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry for poor words. I was not going to blame anybody. But changing interface always is dangerous. It makes third-party classes that implemented the interface no longer valid substitutions.

I think two things are worth to be done:

1) Explicitly document (including the docstring) that the support of stop and start arguments is optional. Not all sequences implements it. 3.5+.

2) Add the support of stop and start arguments to range() in 3.7.

And would be nice to provide a way for testing if the sequence supports extended index(). If this is possible.
History
Date User Action Args
2016-09-21 15:28:55serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, Devin Jeanpierre, docs@python, veky
2016-09-21 15:28:54serhiy.storchakasetmessageid: <1474471734.99.0.597809378781.issue28197@psf.upfronthosting.co.za>
2016-09-21 15:28:54serhiy.storchakalinkissue28197 messages
2016-09-21 15:28:54serhiy.storchakacreate