Merge pull request #3790 from tonicava/master

[Python3/en] copy sets
This commit is contained in:
Max Schumacher 2020-01-28 19:19:55 +01:00 committed by GitHub
commit 7016b606ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,6 +395,9 @@ filled_set | other_set # => {1, 2, 3, 4, 5, 6}
2 in filled_set # => True
10 in filled_set # => False
# Make a one layer deep copy
filled_set = some_set.copy() # filled_set is {1, 2, 3, 4, 5}
filled_set is some_set # => False
####################################################