summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-09 13:21:54 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-09 13:21:54 (GMT)
commit75abc6392bc75cd321564aa1d05d4e57c926c7a4 (patch)
tree33d82347ffd34c23fa5767dda83ecb25e21062bf /Include
parentfba65fe13456509b953dad2e5e3ec6fc8e7fe93c (diff)
downloadcpython-75abc6392bc75cd321564aa1d05d4e57c926c7a4.zip
cpython-75abc6392bc75cd321564aa1d05d4e57c926c7a4.tar.gz
cpython-75abc6392bc75cd321564aa1d05d4e57c926c7a4.tar.bz2
* Objects/{int,long,float}object.c, Include/object.h,
Python/bltinmodule.c: mods by Andrew Kuchling to implement pow(x,y,z) == pow(x,y)%z, but without incurring overflow
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/object.h b/Include/object.h
index 416ca77..cf10ec5 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -135,6 +135,7 @@ method blocks.
typedef object * (*unaryfunc) PROTO((object *));
typedef object * (*binaryfunc) PROTO((object *, object *));
+typedef object * (*ternaryfunc) PROTO((object *, object *, object *));
typedef int (*inquiry) PROTO((object *));
typedef int (*coercion) PROTO((object **, object **));
typedef object *(*intargfunc) PROTO((object *, int));
@@ -150,7 +151,7 @@ typedef struct {
binaryfunc nb_divide;
binaryfunc nb_remainder;
binaryfunc nb_divmod;
- binaryfunc nb_power;
+ ternaryfunc nb_power;
unaryfunc nb_negative;
unaryfunc nb_positive;
unaryfunc nb_absolute;