summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-09 21:43:51 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-09 21:43:51 +0000
commit004cdcebfe03d52ca9da3b2515c203910502dbba (patch)
treed4e36873836f0eee94d606f8ca87a246ea668ccc /unix/main.c
parent062478e66d03cc59ed73484a3032ef5f08db12a4 (diff)
downloadmicropython-004cdcebfe03d52ca9da3b2515c203910502dbba.tar.gz
micropython-004cdcebfe03d52ca9da3b2515c203910502dbba.zip
py: Implement base class lookup, issubclass, isinstance.
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/main.c b/unix/main.c
index caec900a52..15a4000ab5 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -218,7 +218,7 @@ int main(int argc, char **argv) {
// test_obj = TestClass()
// test_obj.attr = 42
mp_obj_t test_class_type, test_class_instance;
- test_class_type = mp_obj_new_type(qstr_from_str_static("TestClass"), mp_obj_new_dict(0));
+ test_class_type = mp_obj_new_type(qstr_from_str_static("TestClass"), mp_const_empty_tuple, mp_obj_new_dict(0));
rt_store_name(qstr_from_str_static("test_obj"), test_class_instance = rt_call_function_0(test_class_type));
rt_store_attr(test_class_instance, qstr_from_str_static("attr"), mp_obj_new_int(42));