py/modbuiltins: __repl_print__: Add comment about setting "_" special var.

This commit is contained in:
Paul Sokolovsky 2016-04-13 00:58:17 +03:00
parent eec8a94f04
commit b67d098841
1 changed files with 1 additions and 0 deletions

View File

@ -439,6 +439,7 @@ STATIC mp_obj_t mp_builtin___repl_print__(mp_obj_t o) {
mp_print_str(&mp_plat_print, "\n");
#endif
#if MICROPY_CAN_OVERRIDE_BUILTINS
// Set "_" special variable
mp_obj_t dest[2] = {MP_OBJ_SENTINEL, o};
mp_type_module.attr(MP_OBJ_FROM_PTR(&mp_module_builtins), MP_QSTR__, dest);
#endif