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

MRAB python at mrabarnett.plus.com
Tue Nov 12 20:25:55 CET 2013


On 12/11/2013 07:14, Steven D'Aprano wrote:
> On Tue, Nov 12, 2013 at 04:31:56PM +1100, Chris Angelico wrote:
>
>> 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 :)
>
> I don't know about that. Expecting print to generate hardcopy output is
> something which beginners to programming often need to unlearn. If print
> doesn't print, which command do you use to actually print?
>
> As for REXX, I expected "say" to use the speaker. That's what the "say"
> command does in Applescript, for example.
>
I remember a review of a micro (Sharp?) many years ago. The reviewer
tried of its version of Basic, using the PRINT command, and was
surprised when the printer sprang into life. It turned out that the
command for printing to the screen was DISPLAY.


More information about the Python-ideas mailing list