py/modsys: Initial implementation of sys.getsizeof().
Implemented as a new MP_UNARY_OP. This patch adds support lists, dicts and instances.
This commit is contained in:
@@ -50,6 +50,7 @@ typedef enum {
|
||||
MP_UNARY_OP_NEGATIVE,
|
||||
MP_UNARY_OP_INVERT,
|
||||
MP_UNARY_OP_NOT,
|
||||
MP_UNARY_OP_SIZEOF, // for sys.getsizeof()
|
||||
} mp_unary_op_t;
|
||||
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user