Changes so that user-defined classes can implement operations invoked

by special syntax: you can now define your own numbers, sequences and
mappings.
This commit is contained in:
Guido van Rossum 1992-08-12 15:35:34 +00:00
parent 423d6c6bca
commit 04691fc1c1
5 changed files with 609 additions and 42 deletions

View file

@ -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 *));