- bool() called without arguments now returns False rather than
raising an exception. This is consistent with calling the
constructors for the other builtin types -- called without argument
they all return the false value of that type. (SF patch #724135)
Thanks to Alex Martelli.
diff --git a/Lib/test/test_bool.py b/Lib/test/test_bool.py
index 404b4e8..a0a03ee 100644
--- a/Lib/test/test_bool.py
+++ b/Lib/test/test_bool.py
@@ -137,6 +137,7 @@
veris(bool(0), False)
veris(bool("hello"), True)
veris(bool(""), False)
+veris(bool(), False)
veris(hasattr([], "append"), True)
veris(hasattr([], "wobble"), False)