mirror of
https://github.com/micropython/micropython.git
synced 2026-01-10 22:17:18 +01:00
15 lines
182 B
Python
15 lines
182 B
Python
# String operations which don't require allocation
|
|
import micropython
|
|
|
|
micropython.heap_lock()
|
|
|
|
b"" + b""
|
|
b"" + b"1"
|
|
b"2" + b""
|
|
|
|
"" + ""
|
|
"" + "1"
|
|
"2" + ""
|
|
|
|
micropython.heap_unlock()
|