On 08/09/2021 21:21, Christopher Barker wrote:

[snip]
NOTE: my objection to “bchr”, whether as a builtin or not is not the functionality, it’s the name.

[snip]
Why not byte() ?

I happened to need to convert an integer to a byte recently and I settled on
    bytes((i,))
I don't know if I missed a more elegant solution (suggestions welcome), but if I could write
    byte(i)
that would feel more Pythonic to me.
Best wishes
Rob Cliffe
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/YTR5XL5FR66KLXRVATZIZPNXPZRP7CLU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to