RE: print with no newline

From: Tim Golden (tim.golden_at_viacom-outdoor.co.uk)
Date: 09/03/04


To: python-list@python.org
Date: Fri, 3 Sep 2004 16:00:18 +0100 


[Jp Calderone]
| Basically, print is only meant to help people new to the
| language get started ;)
| It often does what will make life easiest for someone who is
| just getting into things, but which is otherwise confusing, expected,
| special-casey, or otherwise undesirable. I mean, the whole
| existence of the keyword "print" is an inconsistency, right?
| One could quite reasonably expect print to be a function.

This point of view comes up from time to time on the list
and for the life of me I can't buy into it. Putting aside
the obviously tongue-in-cheek implication that only beginners
would use print, I have almost never found print to be
"confusing... or otherwise undesirable". It does exactly
what I expect it to do with the minimum of syntactic clutter.

If I want something which I consider special-casey, for example
output with no newline, then I know what my options are. And
for the most part that'll be when I'm writing out to a file,
in which case I'm almost certainly using the f.write etc.
methods of the file object.

I would *not* reasonably expect print to be a function. Why
should it be? Certainly any move to remove the print statement
from the language or to replace it by a print function would
get my thumbs-down (or whichever way round the Romans did it).

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



Relevant Pages

  • Berlinski paper presented 1985 at Applied systems analysis
    ... Complexity, Language and Life: Mathematical Approaches, ... This paper explores the idea that life comprises a language-like ...
    (talk.origins)
  • Re: what is etymology? (linguistics and biology)
    ... Life and language, part 1, what is language? ... words in ancient Greek and in Latin). ... calamities, to face them directly when they occur, ...
    (sci.lang)
  • Re: genes and language (Homer, Richard Dawkins)
    ... I am sure that my definition of language - language is ... > is Marie Jean Faucounau alias grapheus alias fr.soc. ... > theory of language (from genes to humans to aliens, ... >> Genetic engineering and communication in the web of life ...
    (sci.archaeology)
  • Re: genes and language (Homer, Richard Dawkins)
    ... I am sure that my definition of language - language is ... > is Marie Jean Faucounau alias grapheus alias fr.soc. ... > theory of language (from genes to humans to aliens, ... >> Genetic engineering and communication in the web of life ...
    (sci.lang)
  • Re: what is etymology? (linguistics and biology)
    ... Life and language, part 2, what is life? ... Language plays a key role in the organization ... and saw the sky as a giant ... sentence: The ball is round. ...
    (sci.lang)