diff options
| author | Guido van Rossum <guido@python.org> | 1992-09-12 11:09:23 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1992-09-12 11:09:23 +0000 |
| commit | 1899c2e0550fa025080e35bb3ec25aeff0118dc7 (patch) | |
| tree | 46cf91828dd59c33ef396e1cdb93ce4ada5c8d9e /Include | |
| parent | 5c85062e1ce4c7e51daaad1a4eb3f66f6b5a0ea8 (diff) | |
| download | cpython-git-1899c2e0550fa025080e35bb3ec25aeff0118dc7.tar.gz | |
Made builtins int(), long(), float(), oct() and hex() more generic.
Diffstat (limited to 'Include')
| -rw-r--r-- | Include/object.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 081bb8624c..f644be3a3d 100644 --- a/Include/object.h +++ b/Include/object.h @@ -146,6 +146,11 @@ typedef struct { object *(*nb_xor) FPROTO((object *, object *)); object *(*nb_or) FPROTO((object *, object *)); int (*nb_coerce) FPROTO((object **, object **)); + object *(*nb_int) FPROTO((object *)); + object *(*nb_long) FPROTO((object *)); + object *(*nb_float) FPROTO((object *)); + object *(*nb_oct) FPROTO((object *)); + object *(*nb_hex) FPROTO((object *)); } number_methods; typedef struct { |
