On 14 November 2014 09:20, Chris Barker email@example.com wrote:
On Thu, Nov 13, 2014 at 10:50 AM, MRAB firstname.lastname@example.org wrote:
There's some code in this that you might find useful:
thanks -- that does look kind of like what I was thinking I'd need to do -- but in the long run what the gc to do it for me (which maybe it does in py3.4)
But maybe I'll patch the netCDF lib with something like that -- folks will be using py < 3.4 for a long time yet :-(
PyPy's GC design is (very) different, and allows finalisation of reference cycles involving __del__ even in Python 2. That path naturally comes with its own C extension compatibility challenges, though.