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

Barry A. Warsaw bwarsaw@beopen.com
Sun, 23 Jul 2000 23:12:33 -0400 (EDT)


>>>>> "AK" == Andrew Kuchling <akuchlin@cnri.reston.va.us> writes:

    AK> Bad example; quick-and-dirty CGI scripts may get away with
    AK> using print.  However, if you want decent error handling, such
    AK> as not outputting a partial page if you get an exception, you
    AK> need to either not use print, or replace sys.stdout to trap
    AK> output from 'print' and only send the output once it's all
    AK> been generated.

You're right, of course.  I think extended print would make writing
stuff like this more readable.

-Barry