mikedewar/d3py — Issue #27: del statement fails to clean up files
Author: mikedewar
Created: 2012-02-16 12:42:34+00:00
State: open

del is not what we want to cleanup files: the reference count could be at zero even if we have stale files lying around!

One solution would be to use enter and exit and require the user to create a figure object with the with statement:

with Figure() as fig:
...do stuff with fig...

ideas?