summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-05-05 20:11:43 (GMT)
committerGuido van Rossum <guido@python.org>1991-05-05 20:11:43 (GMT)
commit97ad2d80e515f36492487503ea99f25db14fb9d3 (patch)
treeb1a5bdae32b96eb63a263fadade074b452241c29 /Include
parent05ab111b1d431fc848966627b395afa71fb5758e (diff)
downloadcpython-97ad2d80e515f36492487503ea99f25db14fb9d3.zip
cpython-97ad2d80e515f36492487503ea99f25db14fb9d3.tar.gz
cpython-97ad2d80e515f36492487503ea99f25db14fb9d3.tar.bz2
Added divmod and abs methods for numbers
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index 9ea5260..ac72529 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -130,9 +130,11 @@ typedef struct {
object *(*nb_multiply) FPROTO((object *, object *));
object *(*nb_divide) FPROTO((object *, object *));
object *(*nb_remainder) FPROTO((object *, object *));
+ object *(*nb_divmod) FPROTO((object *, object *));
object *(*nb_power) FPROTO((object *, object *));
object *(*nb_negative) FPROTO((object *));
object *(*nb_positive) FPROTO((object *));
+ object *(*nb_absolute) FPROTO((object *));
} number_methods;
typedef struct {