[Python-3000] print() parameters in py3k

Adam Olsen rhamph at gmail.com
Tue Nov 21 10:50:25 CET 2006


On 11/20/06, Jim Jewett <jimjjewett at gmail.com> wrote:
> On 11/19/06, Guido van Rossum <guido at python.org> wrote:
> > A PEP may also discourage attempts to add more cruft,
>
> (1)  Is this an explicit rejection of a keyword for a format string, such as
>
>     print (x, y, z, fmt="My X: %s, Your Y: %s, His Z: %s")

Although odd, this appeals to me somehow.  It avoids the risk of
passing an untrusted string as the format (even if that's much less
dangerous than in C).


-- 
Adam Olsen, aka Rhamphoryncus


More information about the Python-3000 mailing list