summaryrefslogtreecommitdiffstats
path: root/Include/classobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-08-12 15:35:34 (GMT)
committerGuido van Rossum <guido@python.org>1992-08-12 15:35:34 (GMT)
commit04691fc1c1bb737c0db772f5c1ea697a351a01d9 (patch)
tree80d559ec0adb25dd1774638ebb0f2bc8aa8afc67 /Include/classobject.h
parent423d6c6bcae783f8ebfcb0b692059eb294ab14dd (diff)
downloadcpython-04691fc1c1bb737c0db772f5c1ea697a351a01d9.zip
cpython-04691fc1c1bb737c0db772f5c1ea697a351a01d9.tar.gz
cpython-04691fc1c1bb737c0db772f5c1ea697a351a01d9.tar.bz2
Changes so that user-defined classes can implement operations invoked
by special syntax: you can now define your own numbers, sequences and mappings.
Diffstat (limited to 'Include/classobject.h')
-rw-r--r--Include/classobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/classobject.h b/Include/classobject.h
index 7dd66e7..1d24a7c 100644
--- a/Include/classobject.h
+++ b/Include/classobject.h
@@ -42,3 +42,6 @@ extern object *newinstancemethodobject PROTO((object *, object *));
extern object *instancemethodgetfunc PROTO((object *));
extern object *instancemethodgetself PROTO((object *));
+
+extern int instance_coerce PROTO((object **, object **));
+extern object *instance_convert PROTO((object *, char *));