Bug #1719995: don't use deprecated method in sets example.

(backport from rev. 55383)
This commit is contained in:
Georg Brandl 2007-05-16 13:44:25 +00:00
parent 5ece2fb0d1
commit 4043a6bbd6
1 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ backwards compatibility. Programmers should prefer the
Set(['Jane', 'Marvin', 'Janice', 'John', 'Jack'])
>>> 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]: