[Python-Dev] Replacement for print in Python 3.0
Steven Bethard
steven.bethard at gmail.com
Fri Sep 2 19:23:39 CEST 2005
Paul Moore wrote:
> On 9/2/05, Steven Bethard <steven.bethard at gmail.com> wrote:
> [...]
> > Since
> > the print function seems to be intended mainly for newbies and simple
> > debugging,
>
> I think there have been quite a few comments here from people who
> *don't* see the print statement [1] as "mainly for newbies and simple
> debugging".
Sorry for the confusion. I wasn't trying to imply anyone was a newbie
here, only that the earlier messages in this thread suggested that
these were the print statement's main audience. (Hence "seems to
be".) Obviously print is used by the rest of us too -- I count around
5000 instances in my installation. However, I only count around 400
instances where a "print" line ends with a comma.
> [1] Sorry, you said "print function". But you seem to be aiming the
> function as able to address everyone's concerns over features they
> like in the print *statement* so I think my point stands.
Yes, that was the intention. If the print function doesn't meet most
of the same needs that the print statement needs, then it's not doing
its job.
> > I'm having trouble coming up with examples where this is
> > really necessary. I'd like to see a few examples where it's crucial
> > that the final newline is suppressed.
>
> No-one is saying "crucial". We're just expressing opinions.
I understand that. I'd just like to see the opinions backed up with
real code. ;-) Personally, I still use print a fair bit for debugging
purposes. But as I don't use it for much else, I can't judge too well
what other needs people have for it.
Steve
--
You can wordify anything if you just verb it.
--- Bucky Katt, Get Fuzzy
More information about the Python-Dev
mailing list