Re: functions versus statements (from WIKI)

Greg Ewing <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
Mark Hahn <[email protected]>:

> I know Guido wants Python print to change to a function and this is
> the current "in thing" to do. I have some vague idea one may want to
> print in a list comprehension but I doubt I'd ever do that.

Guido means it shouldn't be a special statement, not that
it should return a value. If Python ever gets a print-function,
I'm pretty sure it will return None.

> Note: Since this was written I removed the return values from the print
> function to fix the double prints.  This is not necessarily a long-term
> solution.

Why not? It seems perfectly sensible to me.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
[email protected]	   +--------------------------------------+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.