#include "Python.h"
#include "pycore_long.h"
#include "pycore_modsupport.h"
#include "pycore_object.h"
#include "pycore_runtime.h"
#include <stddef.h>
static PyObject *
bool_repr(PyObject *self)
{ … }
PyObject *PyBool_FromLong(long ok)
{ … }
static PyObject *
bool_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{ … }
static PyObject *
bool_vectorcall(PyObject *type, PyObject * const*args,
size_t nargsf, PyObject *kwnames)
{ … }
static PyObject *
bool_invert(PyObject *v)
{ … }
static PyObject *
bool_and(PyObject *a, PyObject *b)
{ … }
static PyObject *
bool_or(PyObject *a, PyObject *b)
{ … }
static PyObject *
bool_xor(PyObject *a, PyObject *b)
{ … }
PyDoc_STRVAR(bool_doc,
"bool(object=False, /)\n\
--\n\
\n\
Returns True when the argument is true, False otherwise.\n\
The builtins True and False are the only two instances of the class bool.\n\
The class bool is a subclass of the class int, and cannot be subclassed.");
static PyNumberMethods bool_as_number = …;
static void
bool_dealloc(PyObject *boolean)
{ … }
PyTypeObject PyBool_Type = …;
struct _longobject _Py_FalseStruct = …;
struct _longobject _Py_TrueStruct = …;