diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2022-12-21 11:43:35 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-01-13 16:38:34 +1100 |
commit | 6013d27dd59dd111041f72106a5a5eddfb02a792 (patch) | |
tree | a83fbde0378eaeaee8ebe3f407ab409c9d713a38 /docs/esp32/tutorial | |
parent | 77002a92bfcef58e01f20428df25793d43231b15 (diff) |
tools/pyboard.py: Add parse kwarg to eval.
This is useful when using pyboard.py as a library rather than at the
command line.
pyb.eval("1+1") --> b"2"
pyb.eval("{'a': '\x00'}") --> b"{'a': '\\x00'}"
Now you can also do
pyb.eval("1+1", parse=True) --> 2
pyb.eval("{'a': '\x00'}", parse=True) --> {'a': '\x00'}
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions