Python does not refer to -0 other than 0 .
blah[:0]
means all elements, but not including the first. This is an empty list, and blah[:-0] is the same.
You can verify this by setting that
blah[0:]
- This is the entire list, starting with the first item.
source share