[Numpy-discussion] Should ndarray be a context manager?

Sturla Molden sturla.molden at gmail.com
Tue Dec 9 12:55:43 EST 2014

On 09/12/14 18:39, Julian Taylor wrote:

> A context manager will also not help you with reference cycles.

If will because __exit__ is always executed. Even if the PyArrayObject 
struct lingers, the data buffer will be released.


More information about the NumPy-Discussion mailing list