For consistency we should allow standard negative index notation for some
other functions:
s.insert(bs, -1) # insert bs at one bit from the end
This could include functions like find() that have a start and end:
s.find(bs, start=-100) # find in the last 100 bits
Affected functions:
find
findall
rfind
cut
split
startswith
endswith
replace
insert
overwrite
reverse
reversebytes
ror /rol (once they get a start / end)
Original issue reported on code.google.com by python.bitstring@googlemail.com on 7 Jan 2010 at 8:20
Original issue reported on code.google.com by
python.bitstring@googlemail.com
on 7 Jan 2010 at 8:20