[Python-ideas] print in the interactive interpreter? plus shell API idea

Aahz aahz at pythoncraft.com
Sun Jul 6 06:25:43 CEST 2008


On Sun, Jul 06, 2008, Greg Ewing wrote:
> Roman Susi wrote:
>> 
>>Before it were simple to print something with print. Now extra ( and )
>>are needed and also extra caution.
> 
> How often does one really need to use print in the interactive
> shell, given than you can just type an expression and get
> the repr of the result?

Actually, I use it frequently because typing "print EXPR" is easier than
"str(EXPR)", and often enough the difference between str() and repr() is
useful (especially in doctests).  I guess when I upgrade to 3.0, I'm
likely to switch to str() instead of print.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha



More information about the Python-ideas mailing list