Commit 7d75ebaa authored by Aurel's avatar Aurel

use a list comprehension to instantiate list of partition's rows, othersiwe all

rows are the same rows thanks to implicit pointer


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@297 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent de0813cd
...@@ -55,7 +55,7 @@ class PartitionTable(object): ...@@ -55,7 +55,7 @@ class PartitionTable(object):
self.np = num_partitions self.np = num_partitions
self.nr = num_replicas self.nr = num_replicas
self.num_filled_rows = 0 self.num_filled_rows = 0
self.partition_list = [[]] * num_partitions self.partition_list = [[] for x in xrange(num_partitions)]
self.count_dict = {} self.count_dict = {}
def clear(self): def clear(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment