bind File.__repr__

This commit is contained in:
K. Lange 2021-01-01 16:58:57 +09:00
parent 1242f2f10f
commit a9fffce795

View File

@ -268,6 +268,7 @@ KrkValue krk_module_onload_fileio(void) {
krk_defineNative(&FileClass->methods, ".write", krk_file_write); krk_defineNative(&FileClass->methods, ".write", krk_file_write);
krk_defineNative(&FileClass->methods, ".flush", krk_file_flush); krk_defineNative(&FileClass->methods, ".flush", krk_file_flush);
krk_defineNative(&FileClass->methods, ".__str__", krk_file_str); krk_defineNative(&FileClass->methods, ".__str__", krk_file_str);
krk_defineNative(&FileClass->methods, ".__repr__", krk_file_str);
krk_defineNative(&FileClass->methods, ".__init__", krk_file_reject_init); krk_defineNative(&FileClass->methods, ".__init__", krk_file_reject_init);
/* Make an instance for stdout, stderr, and stdin */ /* Make an instance for stdout, stderr, and stdin */