summaryrefslogtreecommitdiff
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-21 14:45:04 +0000
committerDamien George <damien.p.george@gmail.com>2015-04-21 14:45:04 +0000
commitc3184aea63b6eaf0a0037f691927028ca4be84c2 (patch)
tree56c9e4161ee04620f44b03502e14189441e8eecb /py/qstrdefs.h
parent5aa311d33084c24262780cae0a65d748990ce7e1 (diff)
py: Add sys.implementation, containing uPy name and version number.
Uses attrtuple if it's enabled, otherwise just a normal tuple.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r--py/qstrdefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index d50fc1f5e..5623c2208 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -450,6 +450,10 @@ Q(stdout)
Q(stderr)
Q(version)
Q(version_info)
+#if MICROPY_PY_ATTRTUPLE
+Q(name)
+#endif
+Q(implementation)
#if MICROPY_PY_SYS_MAXSIZE
Q(maxsize)
#endif