Mercurial > cpython-lru_cache-weakref
diff Include/object.h @ 1049:2ed511171809 legacy-trunk
Made builtins int(), long(), float(), oct() and hex() more generic.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 12 Sep 1992 11:09:23 +0000 |
| parents | 3945f3712354 |
| children | 1cabc2b6c970 |
line wrap: on
line diff
--- a/Include/object.h Fri Sep 11 23:55:51 1992 +0000 +++ b/Include/object.h Sat Sep 12 11:09:23 1992 +0000 @@ -146,6 +146,11 @@ 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 {
