[issue5178] Add context manager for temporary directory

Antoine Pitrou report at bugs.python.org
Sat Feb 14 17:45:00 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

> Maybe there should be a special flag modules can set to make them get
> cleared later in the interpreter cleanup procedure.  Modules could set
> it if they don't create reference cycles themselves and don't hold
> references to user objects.

Or, perhaps we could remove the assignment to None and use a
finalization scheme based on the garbage collector instead.
See #812369 (no patch for the above idea unfortunately).

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5178>
_______________________________________


More information about the Python-bugs-list mailing list