From e4d6293383f2f9df6740f855320681e88fe18573 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Thu, 16 Mar 2000 20:02:38 +0000 Subject: change name of Set method: items -> elements (avoids confusion with dict) --- Lib/compiler/misc.py | 2 +- Tools/compiler/compiler/misc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/compiler/misc.py b/Lib/compiler/misc.py index f85d708..e57acae 100644 --- a/Lib/compiler/misc.py +++ b/Lib/compiler/misc.py @@ -16,7 +16,7 @@ class Set: return len(self.elts) def add(self, elt): self.elts[elt] = elt - def items(self): + def elements(self): return self.elts.keys() def has_elt(self, elt): return self.elts.has_key(elt) diff --git a/Tools/compiler/compiler/misc.py b/Tools/compiler/compiler/misc.py index f85d708..e57acae 100644 --- a/Tools/compiler/compiler/misc.py +++ b/Tools/compiler/compiler/misc.py @@ -16,7 +16,7 @@ class Set: return len(self.elts) def add(self, elt): self.elts[elt] = elt - def items(self): + def elements(self): return self.elts.keys() def has_elt(self, elt): return self.elts.has_key(elt) -- cgit v0.12