A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/007193.html below:

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

[Python-Dev] extended print statement, uPre-PEPBarry 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4