From one point of view, everything is a pointer in Python. Your example works a lot like the C++ code. (A closer equivalent would use some type of shared_ptr<Object> instead of int* .)
Python doesn't need pointers in order to achieve this as every variable is a reference to an object. These references are slightly different from C++ references, in that they can be assigned to - much like pointers in C++. Python standard way of handling things supports you. In python every variable is a reference.