• Facundo Batista's avatar
    Now in find, rfind, index, and rindex, you can use None as defaults, · 57d5669f
    Facundo Batista yazdı
    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.
    57d5669f
string_tests.py 56.8 KB