[Python-Dev] bytes & bytearray

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jan 20 06:15:02 CET 2015


Guido van Rossum wrote:
> On Mon, Jan 19, 2015 at 11:43 AM, Paul Sokolovsky <pmiscml at gmail.com 
> <mailto:pmiscml at 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()

-- 
Greg


More information about the Python-Dev mailing list