%a format

Dan Bishop danb_83 at yahoo.com
Tue Sep 7 19:48:25 EDT 2004


Tor Iver Wilhelmsen <tor.iver.wilhelmsen at broadpark.no> wrote in message news:<usm9tx5n3.fsf at broadpark.no>...
> John Lenton <john at grulic.org.ar> writes:
> 
> > Is there any reason python's printf-style formatting is missing the
> > (C99) '%a' specifier?
> 
> Because it's not very well known or used? A google for "C printf
> format string" gave lots of resources, none of which had %a.

They do if you search for "C99" instead of just "C".

Anyhow, another reason for not supporting "%a" is that it would be
redundant.  It would be sufficent to define an "%x" format for floats.



More information about the Python-list mailing list