micropython/tests/io/file_stdio.py
stephanelsmith db06041d59 extmod/vfs_posix_file: Implement sys.std*.buffer objects.
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>
2023-09-01 17:39:38 +10:00

6 lines
92 B
Python

import sys
print(sys.stdin.fileno())
print(sys.stdout.fileno())
print(sys.stderr.fileno())