cpython/Objects
Facundo Batista 57d5669f4b 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.
2007-11-16 18:04:14 +00:00
..
stringlib Now in find, rfind, index, and rindex, you can use None as defaults, 2007-11-16 18:04:14 +00:00
abstract.c Properly indent two lines. (Spotted because it caused merge conflicts in the 2007-09-18 23:27:30 +00:00
boolobject.c Add a bunch of GIL release/acquire points in tp_print implementations and for 2007-09-17 03:28:34 +00:00
bufferobject.c Coverity #151: Remove deadcode. 2007-10-04 06:00:48 +00:00
cellobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
classobject.c As per Armin Rigo's suggestion, remove special handing from intobject.c to deal with the peculiarities of classobject's implementation of the number protocol. The nb_long method of classobject now falls back to nb_int if there is no __long__ attribute present. 2007-05-07 16:46:54 +00:00
cobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
codeobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
complexobject.c Add a bunch of GIL release/acquire points in tp_print implementations and for 2007-09-17 03:28:34 +00:00
descrobject.c Re-word sentence 2007-11-12 01:25:21 +00:00
dictnotes.txt Patch #1397848: add the reasoning behind no-resize-on-shrinkage. 2007-02-15 09:51:35 +00:00
dictobject.c Optimize common case for dict.fromkeys(). 2007-11-09 23:14:44 +00:00
enumobject.c enumerate() is no longer bounded to using sequences shorter than LONG_MAX. The possibility of overflow was sending some newsgroup posters into a tizzy. 2007-10-03 21:18:11 +00:00
exceptions.c Fix a crasher where Python code managed to infinitely recurse in C code without 2007-09-07 04:18:30 +00:00
fileobject.c Patch # 188 by Philip Jenvey. 2007-09-22 20:18:03 +00:00
floatobject.c Add a bunch of GIL release/acquire points in tp_print implementations and for 2007-09-17 03:28:34 +00:00
frameobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
funcobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
genobject.c Generators had their throw() method allowing string exceptions. That's a 2007-09-11 21:02:28 +00:00
intobject.c Add a bunch of GIL release/acquire points in tp_print implementations and for 2007-09-17 03:28:34 +00:00
iterobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
listobject.c Fix the overflow checking of list_repeat. 2007-10-17 18:46:37 +00:00
listsort.txt typo fix 2006-08-01 16:24:30 +00:00
longobject.c Issue #1772851. Alters long.__hash__ from being *almost* completely 2007-09-19 15:10:06 +00:00
methodobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
moduleobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
object.c tuple.__repr__ did not consider a reference loop as it is not possible from 2007-09-30 19:45:10 +00:00
obmalloc.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
rangeobject.c Remove "static forward" declaration. Move constructors 2006-04-11 09:04:12 +00:00
setobject.c Reposition the decref (spotted by eagle-eye norwitz). 2007-11-08 18:47:51 +00:00
sliceobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
stringobject.c Now in find, rfind, index, and rindex, you can use None as defaults, 2007-11-16 18:04:14 +00:00
structseq.c Improve extended slicing support in builtin types and classes. Specifically: 2007-08-28 15:28:19 +00:00
tupleobject.c Fix error introduced by r58288; if a tuple is length 0 return its repr and 2007-09-30 20:37:19 +00:00
typeobject.c Fix a crasher where Python code managed to infinitely recurse in C code without 2007-09-07 04:18:30 +00:00
unicodectype.c Patch 1494554: Update numeric properties to Unicode 4.1. 2006-05-27 08:36:52 +00:00
unicodeobject.c Now in find, rfind, index, and rindex, you can use None as defaults, 2007-11-16 18:04:14 +00:00
unicodetype_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
weakrefobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00