Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

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.

----------
nosy: +rhettinger
priority: normal -> 

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

Reply via email to