diff options
author | Damien George <damien.p.george@gmail.com> | 2014-08-12 19:57:52 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-08-12 19:57:52 +0100 |
commit | f20375eedd22eeee5f1b273f891631bed8878cdc (patch) | |
tree | 7c2dec0af9cf191746cf7ea742e596c5fe531e86 /py/qstrdefs.h | |
parent | bb91f1195aec8eaca6d8f528118496cff71a101b (diff) | |
download | micropython-f20375eedd22eeee5f1b273f891631bed8878cdc.tar.gz micropython-f20375eedd22eeee5f1b273f891631bed8878cdc.zip |
py: Add .real and .imag attributes to complex numbers.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r-- | py/qstrdefs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index 9a6953d01f..16360e73e0 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -136,7 +136,11 @@ Q(calcsize) Q(chr) Q(classmethod) Q(_collections) +#if MICROPY_PY_BUILTINS_COMPLEX Q(complex) +Q(real) +Q(imag) +#endif Q(dict) Q(dir) Q(divmod) |