summaryrefslogtreecommitdiffhomepage
path: root/python3.html.markdown
diff options
context:
space:
mode:
authorAlfonso Millan <alfonso.a.millan@gmail.com>2017-06-29 01:36:01 -0700
committerven <vendethiel@hotmail.fr>2017-06-29 10:36:01 +0200
commite78e41ce3038b23288ced37e81c019074ad60db4 (patch)
treee7c5878fa48a01b80eb5e09e1e5af8bbb359db38 /python3.html.markdown
parentec10b157024de100522089421ea93c34395fb8db (diff)
Update python3.html.markdown (#2776)
Diffstat (limited to 'python3.html.markdown')
-rw-r--r--python3.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index f25d9228..5aa61b65 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -345,6 +345,7 @@ invalid_set = {[1], 1} # => Raises a TypeError: unhashable type: 'list'
valid_set = {(1,), 1}
# Add one more item to the set
+filled_set = some_set
filled_set.add(5) # filled_set is now {1, 2, 3, 4, 5}
# Do set intersection with &