In Python 3.x, I'm working with large numpy arrays. I would like to have confirmation (without having to actually do some kind of experiment) that methods I have written are either working with a copy of the array OR are working with a direct reference to the array.
I would like confirmation also that the array in question has or has not been modified.
In C++, if I wanted to ensure that an object was NOT modified, I could pass it as a const... in Python, I seem to have no such assurances and have to be extra careful.
So, to sum up: I need a way to tell whether a copy has or has not been produced of a numpy array. I need a way to tell if an array (or any object for that matter) has been modified. I would prefer a fast, automatic way rather than having to do an experiment.