mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Made builtins int(), long(), float(), oct() and hex() more generic.
This commit is contained in:
parent
5c85062e1c
commit
1899c2e055
6 changed files with 193 additions and 91 deletions
|
@ -146,6 +146,11 @@ typedef struct {
|
|||
object *(*nb_xor) FPROTO((object *, object *));
|
||||
object *(*nb_or) FPROTO((object *, object *));
|
||||
int (*nb_coerce) FPROTO((object **, object **));
|
||||
object *(*nb_int) FPROTO((object *));
|
||||
object *(*nb_long) FPROTO((object *));
|
||||
object *(*nb_float) FPROTO((object *));
|
||||
object *(*nb_oct) FPROTO((object *));
|
||||
object *(*nb_hex) FPROTO((object *));
|
||||
} number_methods;
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue