Re: Misleading wikipedia article on Python 3?
- From: Istvan Albert <istvan.albert@xxxxxxxxx>
- Date: Wed, 08 Aug 2007 14:26:08 -0000
On Aug 6, 6:11 am, Paul Rubin <http://phr...@xxxxxxxxxxxxxx> wrote:
Why on earth did they make this change? It just seems gratuitous.
Having print a function (with parameters) makes is very easy to modify
where the output goes.
Say you want to have some prints go to one particular file, today you
cannot easily do it, you have to either do a regex based search/
replace or fiddle with the sys.stdout etc. both have substantial
drawbacks.
A solution would be writing the code with a logging function to begin
with, alas many times that is out of one's hand. I wished print was a
function great many times. I bet Guido has had similar experiences,
note that attempt to keep print in the current form but have it print
to a file ... with that crazy syntax, print >>f, ... alas that did not
solve anything
It is time to fix it for good.
i.
.
- Follow-Ups:
- References:
- Misleading wikipedia article on Python 3?
- From: John J. Lee
- Re: Misleading wikipedia article on Python 3?
- From: "Martin v. Löwis"
- Re: Misleading wikipedia article on Python 3?
- From: John J. Lee
- Re: Misleading wikipedia article on Python 3?
- From: "Martin v. Löwis"
- Re: Misleading wikipedia article on Python 3?
- From: John J. Lee
- Re: Misleading wikipedia article on Python 3?
- From: Carsten Haese
- Re: Misleading wikipedia article on Python 3?
- From: Paul Rubin
- Misleading wikipedia article on Python 3?
- Prev by Date: Re: making a opc client in Python and use opc server Events
- Next by Date: testing
- Previous by thread: Re: Misleading wikipedia article on Python 3?
- Next by thread: Re: Misleading wikipedia article on Python 3?
- Index(es):
Relevant Pages
|