
Sept. 9, 2021
10:21 a.m.
On Thu, 9 Sep 2021 12:06:49 +0200 Victor Stinner <vstinner@python.org> wrote:
I proposed bytes.byte earlier in this thread: https://mail.python.org/archives/list/python-dev@python.org/message/KBVVBJL2...
Gregory dislikes the name: "I don't *like* to argue over names (the last stage of anything) but I do need to point out how that sounds to read". https://mail.python.org/archives/list/python-dev@python.org/message/DGJWM3VM...
That's why I proposed: bytes.fromchar(). I still like bytes.byte() :-)
Well, the proposed function converts *from* an integer *to* a byte "character". But the term character is a bit unfortunate here as well, since characters in Python are Unicode. Regards Antoine.