[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Marijn Schouten
Marijn Schouten added the comment: I remark that `find' and `index' do accept None: $ python3 -c "print('abc'.find('c',None,None))" 2 -- ___ Python tra

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Marijn Schouten
New submission from Marijn Schouten : startswith and endswith don't accept None as slice index, as shown by below interaction. Same behavior for python-3.1.3(with print()) and python-2.7.1. If instead this is intended behavior then the error message is wrong. $ python -c "print &#x