Chris Angelico wrote:

> On Sun, Aug 14, 2011 at 3:26 PM, Steven D'Aprano
> <steve+comp.lang.pyt...@pearwood.info> wrote:
>> Yes, print as a statement was a mistake. But assignment as a statement,
>> not so much. Assignment as an expression in languages that have it tends
>> to be associated with frequent errors.
>>
>> The way I see it, if something operates by side-effect, then it has no
>> business being treated as an expression.
> 
> Wikipedia (that well-known authority) lists among examples of side
> effects both "write data to a display or file" and "modify one of its
> arguments".
[...]

Good point. I withdraw my statement about things that operate about
side-effects.



-- 
Steven

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to