commit | 57d5669f4be86fcaf21f95436fcd5142ffe5efae | [log] [tgz] |
---|---|---|
author | Facundo Batista <facundobatista@gmail.com> | Fri Nov 16 18:04:14 2007 +0000 |
committer | Facundo Batista <facundobatista@gmail.com> | Fri Nov 16 18:04:14 2007 +0000 |
tree | 332a4d0e4f0069b55af028ade293def34622954f | |
parent | 5397fd1a51d2f5bbb9ca1f5a385538e6072ced26 [diff] |
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.