[Python-checkins] r55383 - python/trunk/Doc/lib/libsets.tex

georg.brandl python-checkins at python.org
Wed May 16 15:44:21 CEST 2007


Author: georg.brandl
Date: Wed May 16 15:44:18 2007
New Revision: 55383

Modified:
   python/trunk/Doc/lib/libsets.tex
Log:
Bug #1719995: don't use deprecated method in sets example.


Modified: python/trunk/Doc/lib/libsets.tex
==============================================================================
--- python/trunk/Doc/lib/libsets.tex	(original)
+++ python/trunk/Doc/lib/libsets.tex	Wed May 16 15:44:18 2007
@@ -189,13 +189,13 @@
 >>> 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'])


More information about the Python-checkins mailing list