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

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

[Python-Dev] extended print statement, uPre-PEP [Python-Dev] extended print statement, uPre-PEPPaul Prescod paul@prescod.net
Sat, 22 Jul 2000 15:25:34 -0500
"Barry A. Warsaw" wrote:
> 
> ...
> Really?  We can start by fixing the nearly 5000 occurances of it in
> the Python distribution or the 230 occurances in Mailman.  How often
> does print show up in your own code?

Print almost never shows up in my production code because I always want
to allow the option of redirecting the output and assigning sys.stdout
is a hack for all of the reasons you've pointed out.

I do use print constantly for debug output but the whole point there is
that I don't have to set up a file object. I wouldn't use it even there
if Python auto-coerced strings and moved stdout into __builtins__. Or
else stdout.println could auto-coerce a list of objects.

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



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