[Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

Eric Smith eric+python-dev at trueblade.com
Fri Jun 27 00:37:01 CEST 2008

Mark Dickinson wrote:
> On Thu, Jun 26, 2008 at 11:00 PM, Georg Brandl <g.brandl at gmx.net> wrote:
>> Let me remind you that %a currently means "call ascii()" in 3.0.
> Oh well.  That's out then.  I'll rephrase to "I'd be delighted with something
> similar in spirit to '%a' support."  :-)

It could be added to str.format().  Well, actually float.__format__(). 
Not that I'm advocating it, but it's a place it would fit, and since 
it's restricted to the float format specifier, it would at least be well 
contained.  And other types are free to implement it, or not.

More information about the Python-Dev mailing list