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 rhettinger
Recipients hkBst, jcea, r.david.murray, rhettinger
Date 2011-04-11.16:01:27
SpamBayes Score 4.609297e-05
Marked as misclassified No
Message-id <1302537688.28.0.987329579305.issue11828@psf.upfronthosting.co.za>
In-reply-to
Content
Letting None be used as an index has always been treated as a feature request; however, in this case, it can be deemed a bug because the error message is making a promise that isn't kept.

It would be nice if once and for all this got solved by making argument parsing codes for indices and slices; otherwise, we're doomed to get some variant of this feature request over and over again.

FWIW, Google's code search shows that this slicing feature for startswith/endswith was of dubious worth -- no one seems to uses it.  The feature should probably have not been added in the first place.

Now that it is in, we still need to handle this report because people will need to make method wrappers for string-like classes.
History
Date User Action Args
2011-04-11 16:01:28rhettingersetrecipients: + rhettinger, jcea, r.david.murray, hkBst
2011-04-11 16:01:28rhettingersetmessageid: <1302537688.28.0.987329579305.issue11828@psf.upfronthosting.co.za>
2011-04-11 16:01:27rhettingerlinkissue11828 messages
2011-04-11 16:01:27rhettingercreate