2
>>> do_slice(b'abcdef', 2, 3)
3
(b'c', b'cdef', b'ab', b'abcdef')
4
>>> do_slice(b'abcdef', 0, 5)
5
(b'abcde', b'abcdef', b'', b'abcdef')
10
if sys.version_info[0] < 3:
11
__doc__ = __doc__.replace(u"(b'", u"('").replace(u" b'", u" '")
13
def do_slice(s, int i, int j):
15
return ss[i:j], ss[i:], ss[:i], ss[:]