8000 py: "read" & "write" are so common that make them core. · lurch/micropython@27f5bdd · GitHub
[go: up one dir, main page]

Skip to content

Commit 27f5bdd

Browse files
committed
py: "read" & "write" are so common that make them core.
Few other strings move to core, but make depend on "io" module.
1 parent 100cd36 commit 27f5bdd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

py/qstrdefs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Q(path)
138138
Q(pow)
139139
Q(print)
140140
Q(range)
141+
Q(read)
141142
Q(repr)
142143
Q(set)
143144
Q(sorted)
@@ -150,6 +151,7 @@ Q(to_bytes)
150151
Q(tuple)
151152
Q(type)
152153
Q(value)
154+
Q(write)
153155
Q(zip)
154156

155157
Q(sep)
@@ -309,6 +311,8 @@ Q(unpack)
309311

310312
#if MICROPY_ENABLE_MOD_IO
311313
Q(io)
314+
Q(readall)
315+
Q(readline)
312316
Q(StringIO)
313317
Q(BytesIO)
314318
Q(getvalue)

unix/qstrdefsport.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
Q(Test)
44

55
Q(fileno)
6-
Q(read)
7-
Q(readall)
8-
Q(readline)
9-
Q(write)
106
Q(makefile)
117

128
Q(FileIO)

0 commit comments

Comments
 (0)
0