[SciPy-dev] copy on write?

Robert Kern robert.kern@gmail....
Wed Jul 25 19:35:37 CDT 2007


Nathan Bell wrote:
> Is there any support for copy on write behavior in numpy?

No.

> Short of COW, can one easily get the refcount of an ndarray (in Python)?

sys.getrefcount(obj). Note that calling sys.getrefcount() adds a reference to
obj while it's running, so the usual value is 2.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the Scipy-dev mailing list