R. David Murray added the comment:

Raymond: this is currently marked as a documentation bug, and documentation is 
mostly what the OP was asking for.  So I'm reopening it.

That said, I think it is very appropriate to discuss fixing the behavior of 
string's endswith and startswith, because people are still (and will be for a 
while yet) porting from python2 and supporting single-code-base code, where 
string behaves the way bytes does in python3.  That should be addressed in a 
separate issue.  So in fact, history and "code written for the current 
behavior" comes down, IMO, on the side of fixing this edge case.  I'm willing 
to be argued out of that, though :)

----------
resolution: not a bug -> 
status: closed -> open

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

Reply via email to