summaryrefslogtreecommitdiffstatshomepage
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-04-25 03:17:41 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-04-25 03:49:23 +0300
commit8b85d14b92a65e92862861038c0fe96e6c616c3e (patch)
tree237c7a0bad20fb8a31944a6bc7bbc51a97689d3a /py/qstrdefs.h
parentcf5b6f6974a1ca7d835803a744d1daae12876dac (diff)
downloadmicropython-8b85d14b92a65e92862861038c0fe96e6c616c3e.tar.gz
micropython-8b85d14b92a65e92862861038c0fe96e6c616c3e.zip
modsys: Add basic sys.exc_info() implementation.
The implementation is very basic and non-compliant and provided solely for CPython compatibility. The function itself is bad Python2 heritage, its usage is discouraged.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r--py/qstrdefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index 5623c22084..8b1c9297dd 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -457,6 +457,9 @@ Q(implementation)
#if MICROPY_PY_SYS_MAXSIZE
Q(maxsize)
#endif
+#if MICROPY_PY_SYS_EXC_INFO
+Q(exc_info)
+#endif
Q(print_exception)
#endif