Florent Xicluna <la...@yahoo.fr> added the comment: Steve, thank you for your patch.
IMHO, it's better to provide a patch against trunk (Py2) when the optimization is not specific to 3.x. I merged it manually on my working copy, and all tests pass without leaking. Patch for Py2 attached. However, I am not an expert. I just cleaned the tab/space mix to conform with what is used in the listobject.c file. ---------- keywords: +patch nosy: +flox stage: -> patch review versions: +Python 2.7 Added file: http://bugs.python.org/file16009/issue7784_listobject_perf.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7784> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com