Add os.dupterm() and remove sys.dup_stdio()
parent
1343b5a8e0
commit
24878bce6f
|
@ -395,11 +395,6 @@ Wake reason:
|
|||
- `machine.PIN_WAKE`
|
||||
- `machine.TIMER_WAKE`
|
||||
|
||||
# sys module additions
|
||||
|
||||
The sys module has uPy specific functions:
|
||||
- `sys.dup_stdio([stream_obj])` get or set duplication of global stdio, so that REPL can be redirected to UART or other (note: could allow to duplicate to multiple stream objs but that's arguably overkill and could anyway be done in Python by making a stream multiplexer)
|
||||
|
||||
# time module additions
|
||||
|
||||
The time module has uPy specific functions:
|
||||
|
@ -417,6 +412,7 @@ The os module has uPy specific functions:
|
|||
- `os.mount(block_dev, mount_point, *, readonly)`
|
||||
- `os.umount(mount_point)`
|
||||
- `os.mkfs(device or path, *, options...)`
|
||||
- `os.dupterm([stream_obj])` get or set duplication of controlling terminal, so that REPL can be redirected to UART or other (note: could allow to duplicate to multiple stream objs but that's arguably overkill and could anyway be done in Python by making a stream multiplexer)
|
||||
|
||||
# micropython module
|
||||
|
||||
|
|
Loading…
Reference in New Issue