[Python-ideas] bytes indexing behavior
Guido van Rossum
guido at python.org
Tue Jun 7 00:48:01 EDT 2016
On Monday, June 6, 2016, Serhiy Storchaka <storchaka at 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160606/f55d6543/attachment.html>
More information about the Python-ideas
mailing list