[Python-ideas] Different bases format specification
python at mrabarnett.plus.com
Sat Dec 3 02:26:30 CET 2011
On 03/12/2011 00:12, T.B. wrote:
> I will start by stating that it's not my original idea, but taken from
> Erlang. See Erlang's io:format documentation here:
> http://www.erlang.org/doc/man/io.html#format-1 and notice the 'B'
> control sequence.
> I would like to have an easy built-in way to print integers in different
> bases (radices). There are so many half baked solutions out there:
> I suggest using the precision field in the format specification for
> integers for that.
I think that the precision field should be used only for the precision
and that sometimes using it for something completely different is a bad
More information about the Python-ideas