From 7817d6adaf8219af442e936efb926be67ca277f9 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Mon, 14 Jul 2008 13:14:50 +0000 Subject: [PATCH] product avoids duplicated items git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@5 014f5005-505e-4b48-8d0a-63407b615a7c --- relation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/relation.py b/relation.py index d9175ab..e67b8e7 100644 --- a/relation.py +++ b/relation.py @@ -68,7 +68,9 @@ class relation (object): for i in self.content: for j in other.content: - newt.content.append(i+j) + n=i+j + if n not in newt.content: + newt.content.append(i+j) return newt