Bastiaan Albarda added the comment: The * operator lets you use the same object multiple times, thereby saving resources.
If you want unique objects use comprehension: >>> v = [[] for x in range(10)] >>> v[3].append(3) >>> v [[], [], [], [3], [], [], [], [], [], []] >>> v[3] += [3] >>> v [[], [], [], [3, 3], [], [], [], [], [], []] ---------- nosy: +Bastiaan Albarda _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24589> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com