
Sept. 8, 2021
11:29 p.m.
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