This website requires JavaScript.
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
mirror
/
micropython
kopia lustrzana
https://github.com/micropython/micropython
Obserwuj
1
Polub
0
Forkuj
You've already forked micropython
0
Kod
Zgłoszenia
Projekty
Wydania
Wiki
Aktywność
08c661c930
micropython
/
tests
/
io
/
file_stdio.py
6 wiersze
92 B
Python
Czysty
Zwykły widok
Historia
Unescape
Escape
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 06:57:45 +00:00
import
sys
io.File, socket types: Add fileno() method. Implementation is duplicated, but tolerate this for now, because there's no clear idea how to de-dup it.
2014-02-08 19:15:46 +00:00
print
(
sys
.
stdin
.
fileno
(
)
)
print
(
sys
.
stdout
.
fileno
(
)
)
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-07-26 02:52:56 +00:00
print
(
sys
.
stderr
.
fileno
(
)
)