3 ms·
The tracebacks were a lot of what made me cut back on using weakrefs and trying to make things manage their resources automatically. Now I use close() methods
by eternityforest 3y ago
The tracebacks were a lot of what made me cut back on using weakrefs and trying to make things manage their resources automatically.
Now I use close() methods for anything that needs to be closed. If I mess up and there's some obscure bug, hopefully GC will fix it, but it seems too brittle and easy to make mistakes with to rely on.