[EMAIL PROTECTED] wrote:

> John Salerno:
>> What does everyone think about this?
> 
> The Example 2 builds a list, that is then thrown away. It's just a
> waste of memory (and time).

No, it doesn't. It uses append because it refers to itself in the
if-expression. So the append(c) is needed - and thus the assignment
possible but essentially useless.

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

Reply via email to