PEP-0315--Enhanced While Loop: An idea for an alternative syntax

Paul Rubin http
Thu Feb 19 02:57:54 EST 2004


Joe Mason <joe at notcharles.ca> writes:
> x = 1 (or x := 1) looks to me like a statement that sets x to 1, not an
> expression.  I wouldn't expect any return value, if my mind hadn't been
> corrupted by C.  So the fact that there's a return value at all is
> implicit.

What do you mean by "return value"?  Only functoins have return
values.  It's just a value, not a return value.



More information about the Python-list mailing list