summaryrefslogtreecommitdiffstats
path: root/Lib/compiler
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 /Lib/compiler
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 'Lib/compiler')
-rw-r--r--Lib/compiler/misc.py2
1 files changed, 1 insertions, 1 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)