From 98a627dc03bc02e1b827ead8cc71b02259731551 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 3 Apr 2014 14:57:53 +0300 Subject: py: Add "io" module. So far just includes "open" function, which should be supplied by a port. TODO: Make the module #ifdef'ed. --- stm/file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stm/file.c') diff --git a/stm/file.c b/stm/file.c index 40ac3ff9c..6a1162385 100644 --- a/stm/file.c +++ b/stm/file.c @@ -92,3 +92,5 @@ mp_obj_t pyb_io_open(mp_obj_t o_filename, mp_obj_t o_mode) { } return self; } + +MP_DEFINE_CONST_FUN_OBJ_2(mp_builtin_open_obj, pyb_io_open); -- cgit v1.2.3