Skip to content

potential fix for issue 218 (circular references preventing garbage collection)#219

Merged
jswhit merged 14 commits intoUnidata:masterfrom
jswhit:master
Mar 6, 2014
Merged

potential fix for issue 218 (circular references preventing garbage collection)#219
jswhit merged 14 commits intoUnidata:masterfrom
jswhit:master

Conversation

@jswhit
Copy link
Collaborator

@jswhit jswhit commented Feb 27, 2014

No description provided.

@jswhit
Copy link
Collaborator Author

jswhit commented Feb 27, 2014

Using weakrefs is causing a bunch of test failures like this:

File "/Users/jsw/Library/Python/2.7/lib/python/site-packages/netCDF4_utils.py", line 23, in _find_dim
raise ValueError("cannot find dimension %s in this group or parent groups" % dimname)
ValueError: cannot find dimension lat in this group or parent groups

@jswhit
Copy link
Collaborator Author

jswhit commented Feb 27, 2014

using weakref.proxy instead of weakref.ref fixes this (attributes are visible for weakref.proxy objects)

jswhit pushed a commit that referenced this pull request Mar 6, 2014
potential fix for issue 218 (circular references preventing garbage collection)
@jswhit jswhit merged commit 01cbb86 into Unidata:master Mar 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant