This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients jksware, serhiy.storchaka
Date 2016-10-01.19:52:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475351562.13.0.507980374712.issue28336@psf.upfronthosting.co.za>
In-reply-to
Content
The default value of the lower bound index is 0, but the default value of the upper bound index is the length of the sequence. s[:a] is the same as s[0:a], but s[a:] is the same as s[a:len(s)].

If make s[a:0] meaning the same as s[a:len(s)], i.e. return a subsequence from index a to the end, while s[0:a] means the same as s[:a], i.e. returns a subsequence from the begin to index a, what should mean s[0:0]? There is a contradiction.

This change would break existing code.
History
Date User Action Args
2016-10-01 19:52:42serhiy.storchakasetrecipients: + serhiy.storchaka, jksware
2016-10-01 19:52:42serhiy.storchakasetmessageid: <1475351562.13.0.507980374712.issue28336@psf.upfronthosting.co.za>
2016-10-01 19:52:42serhiy.storchakalinkissue28336 messages
2016-10-01 19:52:42serhiy.storchakacreate