Yes, it is safe in Python: the evaluation order of an expression is from left to right, but in the assignment operator, the right side is evaluated before the assignment occurs. Also, an arithmetic expression is evaluated in the arithmetic order of their suffixes.
5.14. Assessment Procedure
Python . , , .
: