mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Bug #1719995: don't use deprecated method in sets example.
(backport from rev. 55383)
This commit is contained in:
parent
5ece2fb0d1
commit
4043a6bbd6
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue