[Python-3000] Implementing % formatting in terms of str.format()

Nick Coghlan ncoghlan at gmail.com
Sat Apr 12 15:51:17 CEST 2008


Eric Smith wrote:
> Guido van Rossum wrote:
>> If 2.6 can't support %b, so be it.
> 
> It would really be easiest to just say that if you want binary 
> formatting in both 2.6 and 3.0, use str.format.  I don't think expanding 
> the functionality of % formatting is what anyone should be spending 
> their time on.
> 
> I'd be happy to update the PEP to drop %b.

I didn't even realise a %b formatter was in the PEP: +1 for dropping it 
and leaving the % formatting implementation alone.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list