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/007165.html below:

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

[Python-Dev] extended print statement, uPre-PEPAndrew Kuchling akuchlin@mems-exchange.org
Sun, 23 Jul 2000 11:56:27 -0400
On Sat, Jul 22, 2000 at 04:07:08PM -0400, Barry A. Warsaw wrote:
>print is incredibly convenient; I'd hate to write CGI scripts without
>it.  Why not make it just a little more so?

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

--amk



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