diff options
author | Georg Brandl <georg@python.org> | 2007-05-16 13:44:18 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-05-16 13:44:18 (GMT) |
commit | f1135f30f8c2b6d1d6a875135de37d04c030e071 (patch) | |
tree | e1255647a78bbdbd96d1538f2e939699710e6028 /Doc/lib | |
parent | fa155111b4d488e20b31561cde92fd1abce1f12b (diff) | |
download | cpython-f1135f30f8c2b6d1d6a875135de37d04c030e071.zip cpython-f1135f30f8c2b6d1d6a875135de37d04c030e071.tar.gz cpython-f1135f30f8c2b6d1d6a875135de37d04c030e071.tar.bz2 |
Bug #1719995: don't use deprecated method in sets example.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libsets.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libsets.tex b/Doc/lib/libsets.tex index 6970139..e02a7f5 100644 --- a/Doc/lib/libsets.tex +++ b/Doc/lib/libsets.tex @@ -189,13 +189,13 @@ backwards compatibility. Programmers should prefer the >>> engineers.add('Marvin') # add element >>> print engineers Set(['Jane', 'Marvin', 'Janice', 'John', 'Jack']) ->>> employees.issuperset(engineers) # superset test +>>> employees.issuperset(engineers) # superset test False ->>> employees.union_update(engineers) # update from another set +>>> employees.update(engineers) # update from another set >>> employees.issuperset(engineers) True >>> for group in [engineers, programmers, managers, employees]: -... group.discard('Susan') # unconditionally remove element +... group.discard('Susan') # unconditionally remove element ... print group ... Set(['Jane', 'Marvin', 'Janice', 'John', 'Jack']) |