]> granicus.if.org Git - python/commit
- bool() called without arguments now returns False rather than
authorGuido van Rossum <guido@python.org>
Sat, 19 Apr 2003 18:15:10 +0000 (18:15 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 19 Apr 2003 18:15:10 +0000 (18:15 +0000)
commitaa86e35c524275e1f6cca91c1f8fcfc15e8d8b30
tree09a2231543fb1f83d759ee5bfa41bca0a88d500a
parenta26854095be67418bc89eff4874b32e33d7e5bf6
- 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.
Lib/test/test_bool.py
Lib/test/test_types.py
Misc/NEWS
Objects/boolobject.c