summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--python3.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index 4d5bb3ae..795d9e99 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -805,6 +805,7 @@ class Superhero(Human):
# add additional class attributes:
self.fictional = True
self.movie = movie
+ # be aware of mutable default values, since defaults are shared
self.superpowers = superpowers
# The "super" function lets you access the parent class's methods