[issue47052] allow string as sep in _Py_strhex_impl ( bytearray.hex() )

2022-03-17 Thread arne123
arne123 added the comment: Well, I think there are many ways to solve this in python (e.g. I used iteration before, wasn't aware of the sep. at all), but when there is already a separator, why limiting it to one character? -- ___ Python tracker

[issue47052] allow string as sep in _Py_strhex_impl ( bytearray.hex() )

2022-03-17 Thread arne123
New submission from arne123 : I use Python to support some C development. Often I need to convert bytearrays to C like convention: 0x12, 0x34 It would be very convenient for this use case if the separator could be a string (like ", 0x") instead of just a single