%a format

John Lenton john at grulic.org.ar
Wed Sep 8 09:08:38 EDT 2004


On Tue, Sep 07, 2004 at 02:07:31PM -0500, Skip Montanaro wrote:
> 
>     John> Is there any reason python's printf-style formatting is missing
>     John> the (C99) '%a' specifier?
> 
> I suspect because nobody's implemented it yet, most likely because nobody's
> needed it.  (Yours is the first mention I've seen of it.)  Python's C
> implementation currently supports C89, not C99, and since %a is apparently a
> new thing, it's not all that surprising the Python doesn't yet support it.
> Can you provide a patch against Objects/stringobject.c in the distribution?
> Note that Python uses sprintf() to do its dirty work, so any patch would
> have to implement %a itself to remain compatible with C89.

is remaining compatible with C89 a requirement?

-- 
John Lenton (john at grulic.org.ar) -- Random fortune:
El palo dado... ni Dios lo quita. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20040908/cfe14ebb/attachment.sig>


More information about the Python-list mailing list