Martin Panter added the comment:

Okay, I think I get it. You are setting some attributes to None, in case they 
happen to be causing a reference cycle. When close() is called, they are no 
longer needed, so it might help to breaking potential reference cycles. I have 
often wondered why this was done. I always assumed it was a carry-over from old 
code relying on the garbage collector to automatically close files, etc.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23865>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to