From 1e10cdfdef9ff201d79bb7f168fecc18c9a6b628 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 11 Aug 2010 12:16:43 -0700 Subject: [PATCH] Remove bool builtin name. --- Cython/Compiler/Builtin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 25e93956..24b4f971 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -88,7 +88,11 @@ builtin_types_table = [ ("type", "PyType_Type", []), - ("bool", "PyBool_Type", []), +# This conflicts with the C++ bool type, and unfortunately +# C++ is too liberal about PyObject* <-> bool conversions, +# resulting in unintuitive runtime behavior and segfaults. +# ("bool", "PyBool_Type", []), + ("int", "PyInt_Type", []), ("long", "PyLong_Type", []), ("float", "PyFloat_Type", []), -- 2.26.2