[Python-Dev] extended print statement, uPre-PEP

Paul Prescod paul@prescod.net
Sat, 22 Jul 2000 09:54:17 -0500


"Barry A. Warsaw" wrote:
> 
> I've long wanted to make the print statement able to handle
> alternative output files in a more convenient syntax.  Yes you can
> rebind sys.stdout, but that is often very clumsy to get right in the
> face of exceptions.

Why not use outputfile.write directly?

print is such a hack already.

What are we trying to get at, really? What are the virtues of print,
what are the virtues of "outputfile.write" and how can we combine them?

-- 
 Paul Prescod - Not encumbered by corporate consensus
New from Computer Associates: "Software that can 'think', sold by 
marketers who choose not to."