summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/sys.rst
blob: 8e05ac23f16fb9eeb09a05d6abc4c8279eec9107 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
:mod:`sys` -- system specific functions
=======================================

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