(original) (raw)

Yes, this was my point: I don't think that we need a bytearray method to create a mutable string from a single byte.


Victor

Le samedi 3 septembre 2016, Random832 <random832@fastmail.com> a écrit :
On Fri, Sep 2, 2016, at 19:44, Ethan Furman wrote:

> The problem with only having `bchr` is that it doesn't help with

> `bytearray`;



What is the use case for bytearray.fromord? Even in the rare case

someone needs it, why not bytearray(bchr(...))?

_______________________________________________

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/victor.stinner%40gmail.com