[Python-3000] format_spec parameter to format() builtin defaults to "" [was: Re: string.Formatter class]

Eric Smith eric+python-dev at trueblade.com
Fri Aug 31 03:17:05 CEST 2007


Talin wrote:
> Also I wanted to ask: How about making the built-in 'format' function 
> have a default value of "" for the second argument? So I can just say:
>> format(x)
>> as a synonym for:
>> str(x)

I implemented this in r57797.
Eric.


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /