[issue13896] Make shelf instances work with 'with' as context managers
Andrew Svetlov
report at bugs.python.org
Fri Oct 5 21:39:09 CEST 2012
Andrew Svetlov added the comment:
Filip, please describe why you prevent closing if writeback attribute is not present.
I see comment for __del__ related to #1339007, but at __exit__ call __enter__ has called already and __init__ has finished definitely with success.
Also I would to see reference to http://bugs.python.org/issue1339007 in __del__ comment to cleaner description of issue.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13896>
_______________________________________
More information about the Python-bugs-list
mailing list