py: Add sys.implementation, containing uPy name and version number.

Uses attrtuple if it's enabled, otherwise just a normal tuple.
This commit is contained in:
Damien George
2015-04-21 14:45:04 +00:00
parent 5aa311d330
commit c3184aea63
3 changed files with 54 additions and 0 deletions

View File

@@ -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