From: Robert Bradshaw Date: Wed, 11 Aug 2010 19:16:43 +0000 (-0700) Subject: Remove bool builtin name. X-Git-Tag: 0.13.beta1~9 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1e10cdfdef9ff201d79bb7f168fecc18c9a6b628;p=cython.git Remove bool builtin name. --- 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", []),