summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Schumacher <maximilianbschumacher@gmail.com>2020-01-28 19:19:55 +0100
committerGitHub <noreply@github.com>2020-01-28 19:19:55 +0100
commit7016b606ede296afa4dc39b08e24854c0bb2401d (patch)
tree9e32fcfef65e0d159e298444c186f6a506709ff3
parente2592a9a35bc82ba3da29a8e06d5640d89a1757a (diff)
parentfe84024d169dffc793fcf2e6eb82b8cd4ea97f8d (diff)
Merge pull request #3790 from tonicava/master
[Python3/en] copy sets
-rw-r--r--python3.html.markdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index 20377801..2b7c9490 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -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
####################################################