[Python-ideas] A suggestion for Python 3 vs Python 2

Chris Angelico rosuav at gmail.com
Tue Nov 12 06:31:56 CET 2013


On Tue, Nov 12, 2013 at 4:23 PM, Brian Curtin <brian at python.org> wrote:
> On Mon, Nov 11, 2013 at 11:03 PM, Xuancong Wang <xuancong84 at gmail.com> wrote:
>> I do agree that print should remain as a function logically. But is there a
>> way to make it as simple as in python 2, or even simpler, for example:
>> pr >>sys.stderr, 'hello world'
>
> It cannot get any more simple than doing what it is named to do. print
> prints. Anything else is not readable.

It's funny how many words we have that all quite validly describe the
concept of producing console output. C calls it "print" (printf), or
"write"; Python calls it "print"; REXX opts for "say"; C++ goes for
"cout" (console output)... yet all of them are very clear, in their
own way, and nobody expects Python to create hard copies or REXX to
use the speaker :)

ChrisA


More information about the Python-ideas mailing list