Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/io/file_stdio.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
117 B
Python
Raw Normal View History

all: Rename "sys" module to "usys". This is consistent with the other 'micro' modules and allows implementing additional features in Python via e.g. micropython-lib's sys. Note this is a breaking change (not backwards compatible) for ports which do not enable weak links, as "import sys" must now be replaced with "import usys".
2020-06-18 11:19:14 +02:00
try:
import usys as sys
except ImportError:
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 21:15:46 +02:00
print(sys.stdin.fileno())
print(sys.stdout.fileno())
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 148ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API