Bug #1719995: don't use deprecated method in sets example.
(backport from rev. 55383)
This commit is contained in:
parent
5ece2fb0d1
commit
4043a6bbd6
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue