summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorkakakaya <kakakaya@users.noreply.github.com>2016-11-30 21:01:27 +0900
committerven <vendethiel@hotmail.fr>2016-11-30 13:01:27 +0100
commitd0918b2576abcefcfca1f439e3b03511f1be0b89 (patch)
treeeddef98cfc5994638a36e136d10abcf9412412da
parent52bbc815204f8ea2135c3b63eef20dd6fd9033a8 (diff)
[python3/en] Add empty tuple to "False if evaluated" list (#2587)
-rw-r--r--python3.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index 839d66fd..04d103f4 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -143,13 +143,13 @@ None # => None
"etc" is None # => False
None is None # => True
-# None, 0, and empty strings/lists/dicts all evaluate to False.
+# None, 0, and empty strings/lists/dicts/tuples all evaluate to False.
# All other values are True
bool(0) # => False
bool("") # => False
bool([]) # => False
bool({}) # => False
-
+bool(()) # => False
####################################################
## 2. Variables and Collections