Antoine Pitrou <pit...@free.fr> added the comment: No wonder it's quadratic (rather than exponential), since summing will invoke the + operator and therefore produce a new list object at every iteration. If you use "f = f + l" in your explicit version, it becomes quadratic too.
---------- nosy: +pitrou resolution: -> invalid status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5855> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com