Is it safe to rely on Python function arguments evaluation order? [duplicate]
Quoting from the reference documentation: Python evaluates expressions from left to right. So yes, you can count on that (with one exception, see below). A call (the (…) part after a primary, such as a function name) is just another expression primary, and the arguments for the call are just more expressions. Note: There is … Read more