Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd22a04d

Browse files
committed
py/objstringio: Add readinto() method.
Also, drop deprecated (as for MicroPython) readall() method.
1 parent49e1404 commitd22a04d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎py/objstringio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ STATIC mp_obj_t stringio_make_new(const mp_obj_type_t *type_in, size_t n_args, s
177177

178178
STATICconstmp_rom_map_elem_tstringio_locals_dict_table[]= {
179179
{MP_ROM_QSTR(MP_QSTR_read),MP_ROM_PTR(&mp_stream_read_obj) },
180-
{MP_ROM_QSTR(MP_QSTR_readall),MP_ROM_PTR(&mp_stream_readall_obj) },
180+
{MP_ROM_QSTR(MP_QSTR_readinto),MP_ROM_PTR(&mp_stream_readinto_obj) },
181181
{MP_ROM_QSTR(MP_QSTR_readline),MP_ROM_PTR(&mp_stream_unbuffered_readline_obj) },
182182
{MP_ROM_QSTR(MP_QSTR_write),MP_ROM_PTR(&mp_stream_write_obj) },
183183
{MP_ROM_QSTR(MP_QSTR_seek),MP_ROM_PTR(&mp_stream_seek_obj) },

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp