12 Jan
2014
12 Jan
'14
9:59 p.m.
Why not just use six.byte_format(fmt, *args)? It works on both Python2 and Python3 and accepts the numerical format specifiers, plus '%b' for inserting bytes and '%a' for converting text to ascii. Admittedly it doesn't exist yet, but it could and it would save a lot of arguing :) (Apologies to anyone who doesn't appreciate my mischievous sense of humour) Cheers, Mark.