1.1 --- a/lib/__builtins__/bool.py Wed Oct 26 16:36:17 2016 +0200
1.2 +++ b/lib/__builtins__/bool.py Thu Oct 27 17:55:28 2016 +0200
1.3 @@ -19,14 +19,17 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -class bool(object):
1.8 +class boolean(object):
1.9 def __bool__(self):
1.10 "Identity operation."
1.11 return self
1.12 def __str__(self):
1.13 return self is True and "True" or "False"
1.14
1.15 -False = bool()
1.16 -True = bool()
1.17 +False = boolean()
1.18 +True = boolean()
1.19 +
1.20 +def bool(obj):
1.21 + return obj.__bool__()
1.22
1.23 # vim: tabstop=4 expandtab shiftwidth=4