summaryrefslogtreecommitdiffstats
path: root/Objects/intobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-06-24 22:46:07 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-06-24 22:46:07 (GMT)
commit9c437af4ebd832d913b85bfb2e666d55565c3665 (patch)
tree993ca8e99a212478a985cdeec1f92892016ce2da /Objects/intobject.c
parent4ac817213bdc9fabd6522754ef6088bac02e74ce (diff)
downloadcpython-9c437af4ebd832d913b85bfb2e666d55565c3665.zip
cpython-9c437af4ebd832d913b85bfb2e666d55565c3665.tar.gz
cpython-9c437af4ebd832d913b85bfb2e666d55565c3665.tar.bz2
Revert 64424, 64438, and 64439.
Diffstat (limited to 'Objects/intobject.c')
-rw-r--r--Objects/intobject.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index 5210ee8..f98aee0 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -934,12 +934,6 @@ int_float(PyIntObject *v)
}
static PyObject *
-int_bin(PyObject *v)
-{
- return PyNumber_ToBase(v, 2);
-}
-
-static PyObject *
int_oct(PyIntObject *v)
{
return _PyInt_Format(v, 8, 0);
@@ -1237,7 +1231,6 @@ static PyNumberMethods int_as_number = {
0, /* nb_inplace_floor_divide */
0, /* nb_inplace_true_divide */
(unaryfunc)int_int, /* nb_index */
- (unaryfunc)int_bin, /* nb_bin */
};
PyTypeObject PyInt_Type = {