2014-10-31 18:21:37 -04:00
|
|
|
:mod:`sys` -- system specific functions
|
|
|
|
=======================================
|
2014-10-30 21:37:19 -04:00
|
|
|
|
|
|
|
.. module:: sys
|
|
|
|
:synopsis: system specific functions
|
|
|
|
|
|
|
|
Functions
|
|
|
|
---------
|
|
|
|
|
|
|
|
.. function:: exit([retval])
|
|
|
|
|
|
|
|
Raise a ``SystemExit`` exception. If an argument is given, it is the
|
|
|
|
value given to ``SystemExit``.
|
|
|
|
|
|
|
|
Constants
|
|
|
|
---------
|
|
|
|
|
|
|
|
.. data:: argv
|
|
|
|
|
|
|
|
a mutable list of arguments this program started with
|
|
|
|
|
|
|
|
.. data:: byteorder
|
|
|
|
|
|
|
|
the byte order of the system ("little" or "big")
|
|
|
|
|
|
|
|
.. data:: path
|
|
|
|
|
|
|
|
a mutable list of directories to search for imported modules
|
|
|
|
|
|
|
|
.. data:: platform
|
|
|
|
|
|
|
|
the platform that Micro Python is running on
|
|
|
|
|
|
|
|
.. data:: stderr
|
|
|
|
|
|
|
|
standard error (connected to USB VCP, and optional UART object)
|
|
|
|
|
|
|
|
.. data:: stdin
|
|
|
|
|
|
|
|
standard input (connected to USB VCP, and optional UART object)
|
|
|
|
|
|
|
|
.. data:: stdout
|
|
|
|
|
|
|
|
standard output (connected to USB VCP, and optional UART object)
|
|
|
|
|
|
|
|
.. data:: version
|
|
|
|
|
|
|
|
Python language version that this implementation conforms to, as a string
|
|
|
|
|
|
|
|
.. data:: version_info
|
|
|
|
|
|
|
|
Python language version that this implementation conforms to, as a tuple of ints
|