diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-03-16 20:02:38 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-03-16 20:02:38 (GMT) |
commit | e4d6293383f2f9df6740f855320681e88fe18573 (patch) | |
tree | 40bf09b9902e23bfc66845ee79477a3257ff488b | |
parent | dee86c644ecdf6aba7ae85eccb58b90d95f214fc (diff) | |
download | cpython-e4d6293383f2f9df6740f855320681e88fe18573.zip cpython-e4d6293383f2f9df6740f855320681e88fe18573.tar.gz cpython-e4d6293383f2f9df6740f855320681e88fe18573.tar.bz2 |
change name of Set method: items -> elements (avoids confusion with
dict)
-rw-r--r-- | Lib/compiler/misc.py | 2 | ||||
-rw-r--r-- | 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) |