diff options
author | Raymond Hettinger <python@rcn.com> | 2008-06-20 04:18:15 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-06-20 04:18:15 +0000 |
commit | e3ae655edfea3dd8ed32fcca63cb3eae861a58b7 (patch) | |
tree | b1624452b23a4e614e103735dbe7e2a581b159bc /Include/object.h | |
parent | e0f124495b0c0d7826ef1e64a8db27ebe28ed085 (diff) | |
download | cpython-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.h | 3 |
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 { |