1# String operations which don't require allocation
2import micropython
3
4micropython.heap_lock()
5
6# Concatenating empty string returns original string
7b"" + b""
8b"" + b"1"
9b"2" + b""
10
11"" + ""
12"" + "1"
13"2" + ""
14
15# If no replacements done, returns original string
16"foo".replace(",", "_")
17
18micropython.heap_unlock()
19