Commit 510c6653 authored by Robert Bradshaw's avatar Robert Bradshaw

CPython and C++ bool declarations.

parent 1e10cdfd
...@@ -5,6 +5,9 @@ cdef extern from "Python.h": ...@@ -5,6 +5,9 @@ cdef extern from "Python.h":
# 7.2.2 Boolean Objects # 7.2.2 Boolean Objects
############################################################################ ############################################################################
ctypedef class __builtin__.bool [object PyBoolObject]:
pass
# Booleans in Python are implemented as a subclass of # Booleans in Python are implemented as a subclass of
# integers. There are only two booleans, Py_False and Py_True. As # integers. There are only two booleans, Py_False and Py_True. As
# such, the normal creation and deletion functions don't apply to # such, the normal creation and deletion functions don't apply to
......
# empty file # empty file
cdef extern from *:
ctypedef bint bool
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment