New submission from Benjamin Peterson <benja...@python.org>: This patch condenses the many current opcodes used to start a with statement into one, SETUP_WITH. I originally did this to properly lookup __enter__ and __exit__ as special methods. However, the patch also has the nice side effect of removing the need for a temporary variable.
---------- assignee: benjamin.peterson components: Interpreter Core files: SETUP_WITH.patch keywords: patch messages: 88293 nosy: benjamin.peterson priority: normal severity: normal status: open title: SETUP_WITH type: performance versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file14060/SETUP_WITH.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6101> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com