Remove bool builtin name.
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 11 Aug 2010 19:16:43 +0000 (12:16 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 11 Aug 2010 19:16:43 +0000 (12:16 -0700)
Cython/Compiler/Builtin.py

index 25e9395676fb0dee61e05e1bd0efc446f4b71ee8..24b4f971d4eeedbf6f4c4cef4498874bd1e93a3a 100644 (file)
@@ -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",    []),