Message 174552 - Python tracker (original) (raw)
I think the issue is than slice constructor accepts integer out of Py_ssize_t range. And more, it accepts any objects, not only integers or None.
slice(3.4, 'a', {}) slice(3.4, 'a', {})
May be we should disallow creating of such doubtful slices and raise TypeError or OverflowError.