diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-06-11 20:21:57 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-06-11 20:21:57 (GMT) |
commit | 4f92ca4022cfde233b1c9773c147f169a6237d9a (patch) | |
tree | 8c2c4b01ecd0520ac9c28bc5fa18ae87dc8762a0 /Objects | |
parent | 624a7893ea53295d072e3392736b26a3c3f569f7 (diff) | |
download | cpython-4f92ca4022cfde233b1c9773c147f169a6237d9a.zip cpython-4f92ca4022cfde233b1c9773c147f169a6237d9a.tar.gz cpython-4f92ca4022cfde233b1c9773c147f169a6237d9a.tar.bz2 |
Remove nb_reserved (nb_coerce), nb_hex, and nb_oct from PyNumberMethods
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/boolobject.c | 3 | ||||
-rw-r--r-- | Objects/complexobject.c | 3 | ||||
-rw-r--r-- | Objects/floatobject.c | 3 | ||||
-rw-r--r-- | Objects/longobject.c | 3 | ||||
-rw-r--r-- | Objects/setobject.c | 3 | ||||
-rw-r--r-- | Objects/weakrefobject.c | 3 |
6 files changed, 0 insertions, 18 deletions
diff --git a/Objects/boolobject.c b/Objects/boolobject.c index dfea7f4..59a66d5 100644 --- a/Objects/boolobject.c +++ b/Objects/boolobject.c @@ -108,12 +108,9 @@ static PyNumberMethods bool_as_number = { bool_and, /* nb_and */ bool_xor, /* nb_xor */ bool_or, /* nb_or */ - 0, /* nb_reserved */ 0, /* nb_int */ 0, /* nb_long */ 0, /* nb_float */ - 0, /* nb_oct */ - 0, /* nb_hex */ 0, /* nb_inplace_add */ 0, /* nb_inplace_subtract */ 0, /* nb_inplace_multiply */ diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 2e501fc..75283a0 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -1067,12 +1067,9 @@ static PyNumberMethods complex_as_number = { 0, /* nb_and */ 0, /* nb_xor */ 0, /* nb_or */ - 0, /* nb_reserved */ complex_int, /* nb_int */ complex_long, /* nb_long */ complex_float, /* nb_float */ - 0, /* nb_oct */ - 0, /* nb_hex */ 0, /* nb_inplace_add */ 0, /* nb_inplace_subtract */ 0, /* nb_inplace_multiply*/ diff --git a/Objects/floatobject.c b/Objects/floatobject.c index dd3ea93..db1c99f 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -1381,12 +1381,9 @@ static PyNumberMethods float_as_number = { 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ - 0, /*nb_reserved*/ float_trunc, /*nb_int*/ float_trunc, /*nb_long*/ float_float, /*nb_float*/ - 0, /* nb_oct */ - 0, /* nb_hex */ 0, /* nb_inplace_add */ 0, /* nb_inplace_subtract */ 0, /* nb_inplace_multiply */ diff --git a/Objects/longobject.c b/Objects/longobject.c index d0d4d3a..d1c27e6 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -3713,12 +3713,9 @@ static PyNumberMethods long_as_number = { long_and, /*nb_and*/ long_xor, /*nb_xor*/ long_or, /*nb_or*/ - 0, /*nb_reserved*/ long_long, /*nb_int*/ long_long, /*nb_long*/ long_float, /*nb_float*/ - 0, /*nb_oct*/ /* not used */ - 0, /*nb_hex*/ /* not used */ 0, /* nb_inplace_add */ 0, /* nb_inplace_subtract */ 0, /* nb_inplace_multiply */ diff --git a/Objects/setobject.c b/Objects/setobject.c index 4456ef4..e5c89e5 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -2015,12 +2015,9 @@ static PyNumberMethods set_as_number = { (binaryfunc)set_and, /*nb_and*/ (binaryfunc)set_xor, /*nb_xor*/ (binaryfunc)set_or, /*nb_or*/ - 0, /*nb_reserved*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ - 0, /*nb_oct*/ - 0, /*nb_hex*/ 0, /*nb_inplace_add*/ (binaryfunc)set_isub, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c index 2f86ae8..040e938 100644 --- a/Objects/weakrefobject.c +++ b/Objects/weakrefobject.c @@ -594,12 +594,9 @@ static PyNumberMethods proxy_as_number = { proxy_and, /*nb_and*/ proxy_xor, /*nb_xor*/ proxy_or, /*nb_or*/ - 0, /*nb_reserved*/ proxy_int, /*nb_int*/ proxy_long, /*nb_long*/ proxy_float, /*nb_float*/ - 0, /*nb_oct*/ - 0, /*nb_hex*/ proxy_iadd, /*nb_inplace_add*/ proxy_isub, /*nb_inplace_subtract*/ proxy_imul, /*nb_inplace_multiply*/ |