mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
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:
parent
423d6c6bca
commit
04691fc1c1
5 changed files with 609 additions and 42 deletions
|
@ -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 *));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue