]> granicus.if.org Git - python/commit
Some days, I think my comment of
authorMichael W. Hudson <mwh@python.net>
Tue, 5 Nov 2002 15:28:51 +0000 (15:28 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 5 Nov 2002 15:28:51 +0000 (15:28 +0000)
commit173f11da5dae76c504dac3606c27b74673ccfee4
tree4941ffa1ae203a4c87e4c3bdf67a2a35a8708e23
parentd7c14c6c9b5b589d33810fb64ad2b883d52ff7ae
Some days, I think my comment of

/* this is harder to get right than you might think */

angered some God somewhere.  After noticing

    >>> range(5000000)[slice(96360, None, 439)]
    []

I found that my cute test for the slice being empty failed due to
overflow.  Fixed, and added simple test (not the above!).
Lib/test/test_slice.py
Objects/sliceobject.c