Cache __format__ method
This commit is contained in:
parent
f24cb336e7
commit
f1c0af711e
@ -238,6 +238,7 @@ typedef struct KrkClass {
|
||||
KrkObj * _matmul, * _rmatmul, * _imatmul;
|
||||
KrkObj * _pos;
|
||||
KrkObj * _setattr;
|
||||
KrkObj * _format;
|
||||
} KrkClass;
|
||||
|
||||
/**
|
||||
|
@ -46,6 +46,7 @@ CACHED_METHOD(NEGATE, "__neg__", _negate)
|
||||
CACHED_METHOD(SETNAME, "__set_name__", _set_name)
|
||||
CACHED_METHOD(POS, "__pos__", _pos)
|
||||
CACHED_METHOD(SETATTR, "__setattr__", _setattr)
|
||||
CACHED_METHOD(FORMAT, "__format__", _format)
|
||||
|
||||
/* These are not methods */
|
||||
SPECIAL_ATTRS(CLASS, "__class__")
|
||||
|
Loading…
Reference in New Issue
Block a user