diff options
author | Facundo Batista <facundobatista@gmail.com> | 2007-11-16 18:04:14 (GMT) |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2007-11-16 18:04:14 (GMT) |
commit | 57d5669f4be86fcaf21f95436fcd5142ffe5efae (patch) | |
tree | 332a4d0e4f0069b55af028ade293def34622954f /Objects/tupleobject.c | |
parent | 5397fd1a51d2f5bbb9ca1f5a385538e6072ced26 (diff) | |
download | cpython-57d5669f4be86fcaf21f95436fcd5142ffe5efae.zip cpython-57d5669f4be86fcaf21f95436fcd5142ffe5efae.tar.gz cpython-57d5669f4be86fcaf21f95436fcd5142ffe5efae.tar.bz2 |
Now in find, rfind, index, and rindex, you can use None as defaults,
as usual with slicing (both with str and unicode strings). This
fixes issue 1259.
For str only the stringobject.c file was modified. But for unicode,
I needed to repeat in the four functions a lot of code, so created
a new function that does part of the job for them (and placed it in
find.h, following a suggestion of Barry).
Also added tests for this behaviour.
Diffstat (limited to 'Objects/tupleobject.c')
0 files changed, 0 insertions, 0 deletions