[issue11828] startswith and endswith don't accept None as slice index
Torsten Becker
report at bugs.python.org
Tue Apr 12 15:04:08 CEST 2011
Torsten Becker <torsten.becker at gmail.com> added the comment:
Hi, since nobody stopped me by complaining about the approach or the first patch, I now fixed this for bytes and bytearray as well. :)
I renamed the old _ParseTupleFinds function to stringlib_parse_tuple_finds, added a parameter for function name, and another if it shall do unicode conversion. I used this helper function throughout all 3 files now.
I am new to writing C code for Python, so any comments on how to improve the patch are welcome.
----------
Added file: http://bugs.python.org/file21629/issue-11828-v3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11828>
_______________________________________
More information about the Python-bugs-list
mailing list