summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-03-16 20:02:38 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-03-16 20:02:38 (GMT)
commite4d6293383f2f9df6740f855320681e88fe18573 (patch)
tree40bf09b9902e23bfc66845ee79477a3257ff488b /Tools
parentdee86c644ecdf6aba7ae85eccb58b90d95f214fc (diff)
downloadcpython-e4d6293383f2f9df6740f855320681e88fe18573.zip
cpython-e4d6293383f2f9df6740f855320681e88fe18573.tar.gz
cpython-e4d6293383f2f9df6740f855320681e88fe18573.tar.bz2
change name of Set method: items -> elements (avoids confusion with
dict)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/compiler/compiler/misc.py2
1 files changed, 1 insertions, 1 deletions
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)