Mercurial > cpython-lru_cache-weakref
diff Include/classobject.h @ 944:222f04f55083 legacy-trunk
Changes so that user-defined classes can implement operations invoked
by special syntax: you can now define your own numbers, sequences and
mappings.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 12 Aug 1992 15:35:34 +0000 |
| parents | 164849f56105 |
| children | 03de67080c95 |
line wrap: on
line diff
--- a/Include/classobject.h Wed Aug 12 15:34:02 1992 +0000 +++ b/Include/classobject.h Wed Aug 12 15:35:34 1992 +0000 @@ -42,3 +42,6 @@ extern object *instancemethodgetfunc PROTO((object *)); extern object *instancemethodgetself PROTO((object *)); + +extern int instance_coerce PROTO((object **, object **)); +extern object *instance_convert PROTO((object *, char *));
