On 27Oct2012 10:56, I wrote:
| On 26Oct2012 19:41, Devin Jeanpierre <jeanpierr...@gmail.com> wrote:
| | But function calls with side effects _do_ have a defined order of
| | evaluation. Left to right.
| | And the answer should be 4.
| | http://docs.python.org/reference/expressions.html#evaluation-order
| 
| No. Separate _expressions_ are evaluated left to right.
[...]
| need not do so. Counter-documentation welcomed, but the doco you cite
| does not define an order for the second example above.
[...]

On 26Oct2012 16:48, Ian Kelly <ian.g.ke...@gmail.com> wrote:
| > does not have a defined answer; might be 2, might be 3. Just like any
| > other function call with side effects.
| Actually, the docs are clear that expressions are evaluated left to
| right, so the expected result of the above would be 4.

Ian, Devin, my apologies. You're right, the docs are clear and my brain
is foggy. So, no ambiguity about that with the suggested "as" operator.
-- 
Cameron Simpson <c...@zip.com.au>

Well, if you didn't struggle so much, you wouldn't get rope burns.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to