summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-24 22:13:48 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-24 22:13:48 (GMT)
commitbacca54b5955ae33354b362564806a1857fe505e (patch)
tree5d8ce8531c19fd51270e8db98489a8f1e4217bb4 /Include/object.h
parent42756df91cb466d3672756cdeae03089adb72e3f (diff)
downloadcpython-bacca54b5955ae33354b362564806a1857fe505e.zip
cpython-bacca54b5955ae33354b362564806a1857fe505e.tar.gz
cpython-bacca54b5955ae33354b362564806a1857fe505e.tar.bz2
Add a flag to indicate the presence of the tp_richcompare field, and
add it to the default flags.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Include/object.h b/Include/object.h
index 0503691..de67505 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -337,9 +337,14 @@ given type object has a specified feature.
/* PyNumberMethods do their own coercion */
#define Py_TPFLAGS_CHECKTYPES (1L<<4)
-#define Py_TPFLAGS_DEFAULT (Py_TPFLAGS_HAVE_GETCHARBUFFER | \
+#define Py_TPFLAGS_HAVE_RICHCOMPARE (1L<<5)
+
+#define Py_TPFLAGS_DEFAULT ( \
+ Py_TPFLAGS_HAVE_GETCHARBUFFER | \
Py_TPFLAGS_HAVE_SEQUENCE_IN | \
- Py_TPFLAGS_HAVE_INPLACEOPS)
+ Py_TPFLAGS_HAVE_INPLACEOPS | \
+ Py_TPFLAGS_HAVE_RICHCOMPARE | \
+ 0)
#define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0)