diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-08-11 09:42:39 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-08-11 09:43:07 +0300 |
commit | bfc2092dc55d1faab4a6d7e832005afd61d25c3c (patch) | |
tree | 37b1449bd001755fc37fe3d23232658b0c82eca8 /unix | |
parent | 7d4a2f773cc6ce24a91e2d210378188f3371e8a6 (diff) | |
download | micropython-bfc2092dc55d1faab4a6d7e832005afd61d25c3c.tar.gz micropython-bfc2092dc55d1faab4a6d7e832005afd61d25c3c.zip |
py/modsys: Initial implementation of sys.getsizeof().
Implemented as a new MP_UNARY_OP. This patch adds support lists, dicts and
instances.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/mpconfigport_coverage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mpconfigport_coverage.h b/unix/mpconfigport_coverage.h index 5fc8d7107a..a9e0a38fa0 100644 --- a/unix/mpconfigport_coverage.h +++ b/unix/mpconfigport_coverage.h @@ -37,6 +37,7 @@ #define MICROPY_PY_DELATTR_SETATTR (1) #define MICROPY_PY_BUILTINS_HELP (1) #define MICROPY_PY_BUILTINS_HELP_MODULES (1) +#define MICROPY_PY_SYS_GETSIZEOF (1) #define MICROPY_PY_URANDOM_EXTRA_FUNCS (1) #define MICROPY_PY_IO_BUFFEREDWRITER (1) #undef MICROPY_VFS_FAT |