Terry Reedy wrote:
In 3.x, you would write __setitem__ to recognize that the 'key' is a slice object rather than an int and act accordingly. (In 2.x, you would write __setslice__.)
I'm not sure how far back it goes, but at least from 2.4 forward __setitem__ works with slices just fine.
~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list