@@ -27,7 +27,7 @@ Functions
27
27
written which run under both CPython and MicroPython, by following the above
28
28
pattern.
29
29
30
- .. function :: opt_level([level])
30
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: opt_level([level])
31
31
32
32
If *level * is given then this function sets the optimisation level for subsequent
33
33
compilation of scripts, and returns ``None ``. Otherwise it returns the current
@@ -45,7 +45,7 @@ Functions
45
45
46
46
The default optimisation level is usually level 0.
47
47
48
- .. function :: alloc_emergency_exception_buf(size)
48
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: alloc_emergency_exception_buf(size)
49
49
50
50
Allocate *size * bytes of RAM for the emergency exception buffer (a good
51
51
size is around 100 bytes). The buffer is used to create exceptions in cases
@@ -56,7 +56,7 @@ Functions
56
56
(eg ``boot.py `` or ``main.py ``) and then the emergency exception buffer will be active
57
57
for all the code following it.
58
58
59
- .. function :: mem_info([verbose])
59
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: mem_info([verbose])
60
60
61
61
Print information about currently used memory. If the *verbose * argument
62
62
is given then extra information is printed.
@@ -65,7 +65,7 @@ Functions
65
65
includes the amount of stack and heap used. In verbose mode it prints out
66
66
the entire heap indicating which blocks are used and which are free.
67
67
68
- .. function :: qstr_info([verbose])
68
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: qstr_info([verbose])
69
69
70
70
Print information about currently interned strings. If the *verbose *
71
71
argument is given then extra information is printed.
@@ -74,15 +74,15 @@ Functions
74
74
includes the number of interned strings and the amount of RAM they use. In
75
75
verbose mode it prints out the names of all RAM-interned strings.
76
76
77
- .. function :: stack_use()
77
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: stack_use()
78
78
79
79
Return an integer representing the current amount of stack that is being
80
80
used. The absolute value of this is not particularly useful, rather it
81
81
should be used to compute differences in stack usage at different points.
82
82
83
- .. function :: heap_lock()
84
- .. function :: heap_unlock()
85
- .. function :: heap_locked()
83
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: heap_lock()
84
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: heap_unlock()
85
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: heap_locked()
86
86
87
87
Lock or unlock the heap. When locked no memory allocation can occur and a
88
88
`builtins.MemoryError ` will be raised if any heap allocation is attempted.
@@ -102,7 +102,7 @@ Functions
102
102
Note: `heap_locked() ` is not enabled on most ports by default,
103
103
requires ``MICROPY_PY_MICROPYTHON_HEAP_LOCKED ``.
104
104
105
- .. function :: kbd_intr(chr)
105
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: kbd_intr(chr)
106
106
107
107
Set the character that will raise a `KeyboardInterrupt ` exception. By
108
108
default this is set to 3 during script execution, corresponding to Ctrl-C.
@@ -113,7 +113,7 @@ Functions
113
113
incoming stream of characters that is usually used for the REPL, in case
114
114
that stream is used for other purposes.
115
115
116
- .. function :: schedule(func, arg)
116
+ .. CIRCUITPY-CHANGE : REMOVE .. function :: schedule(func, arg)
117
117
118
118
Schedule the function *func * to be executed "very soon". The function
119
119
is passed the value *arg * as its single argument. "Very soon" means that
0 commit comments