Hello,

On Tue, 20 Jan 2015 18:15:02 +1300
Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:

> Guido van Rossum wrote:
> > On Mon, Jan 19, 2015 at 11:43 AM, Paul Sokolovsky
> > <pmis...@gmail.com <mailto:pmis...@gmail.com>> wrote:
> > 
> >     b.lower_inplace()
> >     b.lower_i()
> > 
> > Please don't go there. The use cases are too rare.
> 
> And if you have such a use case, it's not too
> hard to do
> 
>    b[:] = b.lower()

The point of inplace operations (memoryview's, other stuff already in
Python) is to avoid unneeded memory allocation and copying. For 1Tb
bytearray with 1Tb of RAM, it will be very hard to do. (Ditto for 100K
bytearray with 150K RAM.)



-- 
Best regards,
 Paul                          mailto:pmis...@gmail.com
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to