For a non-primitive, java assignment is always rebinding. Java behavior is well-understood and simple, compared to python.
Compared to python, c++ assignment is actually well-documented .. comparable to a mutator method.
Afaik, python assignment is always rebinding afaik, even for an integer. Integer objects are immutable, reference counted.
In python, if you want two functions to share a single mutable integer variable, you can declare a global myInt.
It would be in the global idic/namespace. q[=] on myInt has special meaning similar to
Alternatively, you can wrap the int in a singular list and call list mutator methods, without q[=].
See my experiment in github py/88lang and my blogpost on immutable arg-parssing