py: Implement sys.maxsize, standard way to check platform "bitness".

Implementing it as a static constant is a bit peculiar and require cooperation
from long int implementation.
This commit is contained in:
Paul Sokolovsky
2014-07-03 16:50:11 +03:00
parent 381618269a
commit 4e0eeebdc2
6 changed files with 53 additions and 0 deletions

View File

@@ -352,6 +352,9 @@ Q(stdout)
Q(stderr)
Q(version)
Q(version_info)
#if MICROPY_PY_SYS_MAXSIZE
Q(maxsize)
#endif
#endif
#if MICROPY_PY_STRUCT