Re: Misleading wikipedia article on Python 3?
- From: greg <greg@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 09 Aug 2007 13:02:00 +1200
Istvan Albert wrote:
A solution would be writing the code with a logging function to begin
with, alas many times that is out of one's hand.
If the code has been written with calls to a builtin
print function, the situation isn't much better. You
could monkeypatch the print function, but that's
probably worse than swapping sys.stdout.
(I agree that print should be a function, simply because
there's no strong reason for it *not* to be. But I
don't think it makes a difference to this particular
problem.)
--
Greg
.
- Follow-Ups:
- Re: Misleading wikipedia article on Python 3?
- From: Evan Klitzke
- Re: Misleading wikipedia article on Python 3?
- 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
- Re: Misleading wikipedia article on Python 3?
- From: Istvan Albert
- Misleading wikipedia article on Python 3?
- Prev by Date: Re: Something in the function tutorial confused me.
- Next by Date: Re: Something in the function tutorial confused me.
- Previous by thread: Re: Misleading wikipedia article on Python 3?
- Next by thread: Re: Misleading wikipedia article on Python 3?
- Index(es):