On 2014-10-25, Wolfgang Maier <[email protected]> wrote:
> It may be rare to use an expression both for its side-effects and its
> return value,
It's actually quite common.
For example:
f = open("filename")
d = f.readline()
In both of those lines, the side effects and return values are equally
vital. The same applies to reading from a queue, popping from a
stack, etc.
--
Grant Edwards grant.b.edwards Yow! This PORCUPINE knows
at his ZIPCODE ... And he has
gmail.com "VISA"!!
--
https://mail.python.org/mailman/listinfo/python-list