summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-09-12 11:09:23 (GMT)
committerGuido van Rossum <guido@python.org>1992-09-12 11:09:23 (GMT)
commit1899c2e0550fa025080e35bb3ec25aeff0118dc7 (patch)
tree46cf91828dd59c33ef396e1cdb93ce4ada5c8d9e /Include/object.h
parent5c85062e1ce4c7e51daaad1a4eb3f66f6b5a0ea8 (diff)
downloadcpython-1899c2e0550fa025080e35bb3ec25aeff0118dc7.zip
cpython-1899c2e0550fa025080e35bb3ec25aeff0118dc7.tar.gz
cpython-1899c2e0550fa025080e35bb3ec25aeff0118dc7.tar.bz2
Made builtins int(), long(), float(), oct() and hex() more generic.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index 081bb86..f644be3 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 {