On Monday, June 6, 2016, Serhiy Storchaka <storchaka@gmail.com> wrote:
On 06.06.16 23:28, Guido van Rossum wrote:
I think the approach using a new method for the old behavior is
workable. Maybe we should add another (temporary) new method for the new
behavior.

The magic object approach is too magical.

We should do the same for bytearray and memoryview.

I often use bytearray and memoryview as arrays of ints.

Really short ints. :-). But you should really use the array module instead.

Anyway we should do this for all three or for none.

--Guido


--
--Guido (mobile)