In Python 3, one can format a string like:
\"{0}, {1}, {2}\".format(1, 2, 3)
But how to format bytes?
b\"{0}, {1}, {2}\".fo
For Python 3.6+ you can use this nice and clean syntax:
f'foo {bar}'.encode() # a byte string