mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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:
parent
e0f124495b
commit
e3ae655edf
7 changed files with 49 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue