ACCEPTED: PEP 285

Erik Max Francis max at alcyone.com
Thu Apr 4 00:13:16 EST 2002


Paul Rubin wrote:

> I think there will need to be a format code for truth values:
> 
>   ("%b" % True) => "True"
> 
> etc.

That sounds very reasonable to me; %b should do an implicit bool(...)
just like %s does an implicit str(...).

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Nationalism is an infantile sickness.
\__/ Albert Einstein
    Alcyone Systems' Daily Planet / http://www.alcyone.com/planet.html
 A new, virtual planet, every day.



More information about the Python-list mailing list