New submission from Kristján Valur Jónsson <krist...@ccpgames.com>:
It is all to easy to forget to "unlink()" minidom documents resulting in huge memory usage. This patch allows to automate that process with a context manager, similar to how files can be closed in the same way: with xml.dom.minidom.parse() as dom: workwith(dom) will automatically call dom.unlink() when context manager is exited. Patch provided. ---------- components: Library (Lib) files: minidomcontext.patch keywords: easy, needs review, patch, patch messages: 106610 nosy: krisvale priority: normal severity: normal status: open title: automate minidom.unlink() with a context manager type: feature request versions: Python 3.2 Added file: http://bugs.python.org/file17472/minidomcontext.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8832> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com