mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 21:11:12 +02:00
Add the buffer attribute to sys.stdin, sys.stdout and sys.stderr. This provides raw access to underlying stdio streams for the unix port (and others that use VfsPosix). Signed-off-by: stephanelsmith <stephane.smith@titansensor.com>
6 lines
92 B
Python
6 lines
92 B
Python
import sys
|
|
|
|
print(sys.stdin.fileno())
|
|
print(sys.stdout.fileno())
|
|
print(sys.stderr.fileno())
|