Make bin() implementation parallel oct() and hex() so that int/long subclasses can override or so that other classes can support.

This commit is contained in:
Raymond Hettinger 2008-06-20 04:18:15 +00:00
parent e0f124495b
commit e3ae655edf
7 changed files with 49 additions and 2 deletions

View file

@ -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 {