evaluation question

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jan 30 18:57:33 EST 2023


On 30/01/23 10:41 pm, Muttley at dastardlyhq.com wrote:
> What was the point of the upheaval of converting
> the print command in python 2 into a function in python 3 if as a function
> print() doesn't return anything useful?

It was made a function because there's no good reason for it
to have special syntax in the language.

Functions don't need to return things to justify their existence,
and in fact the usual convention is that functions whose purpose
is to have an effect just return None.

-- 
Greg


More information about the Python-list mailing list