[Python-Dev] Replacement for print in Python 3.0

James Y Knight foom at fuhm.net
Sat Sep 3 18:51:54 CEST 2005


On Sep 3, 2005, at 11:32 AM, Barry Warsaw wrote:

> So I think it's best to have two builtins:
>
> print(*args, **kws)
> printf(fmt, *args, **kws)

It seems pretty bogus to me to add a second builtin just to apply the  
% operator for you. I've always really liked that Python doesn't have  
separate xyzf functions, because formatting is an operation you can  
do directly on the string and pass that to any function you like.  
It's much cleaner...

James


More information about the Python-Dev mailing list