[SciPy-Dev] Circular reference in interp1d causing memory errors
Aron Ahmadia
aron at ahmadia.net
Sat May 18 20:07:32 EDT 2013
On Sun, May 19, 2013 at 1:00 AM, Matthew Brett <matthew.brett at gmail.com>wrote:
> Following on from Josef's and Robert's posts, I wrote a
> `check_refs_for` context manger that does this:
>
Newbie question but what is context manager in this, ermnn, context?
That's a cool test, maybe rename it to:
assert_no_refs_to(C):
And I haven't seen the code, but I assume it...
- asserts no C refs
- disables garbage collector
- code
- asserts no C refs
- re-enables garbage collector
Cheers,
Aron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20130519/fb5341a7/attachment-0001.html>
More information about the SciPy-Dev
mailing list