summaryrefslogtreecommitdiff
path: root/Include/object.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-06-20 04:18:15 +0000
committerRaymond Hettinger <python@rcn.com>2008-06-20 04:18:15 +0000
commite3ae655edfea3dd8ed32fcca63cb3eae861a58b7 (patch)
treeb1624452b23a4e614e103735dbe7e2a581b159bc /Include/object.h
parente0f124495b0c0d7826ef1e64a8db27ebe28ed085 (diff)
downloadcpython-git-e3ae655edfea3dd8ed32fcca63cb3eae861a58b7.tar.gz
Make bin() implementation parallel oct() and hex() so that int/long subclasses can override or so that other classes can support.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index 59f3b9e1b1..709174fdf5 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -267,6 +267,9 @@ typedef struct {
/* Added in release 2.5 */
unaryfunc nb_index;
+
+ /* Added in release 2.6 */
+ unaryfunc nb_bin;
} PyNumberMethods;
typedef struct {