Re: Misleading wikipedia article on Python 3?



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.


.



Relevant Pages

  • Re: Misleading wikipedia article on Python 3?
    ... alas many times that is out of one's hand. ... If the code has been written with calls to a builtin ... def logger: ... to another logging function, or wrap it transparently like this to ...
    (comp.lang.python)
  • Re: After very small solenoids
    ... for latching purposes but alas they are all pull type unless you could ... modify them with a "reverse" arm attached to the actuator head and then ...
    (sci.electronics.misc)
  • Re: How to repair index corruption
    ... Alas, due to db design constraints I can not modify the structure of ... > Jeff Boyce ...
    (microsoft.public.access.tablesdbdesign)