From c06763a0207dde7f2060f7b1670a0b99298a01f8 Mon Sep 17 00:00:00 2001 From: "John R. Lenton" Date: Tue, 7 Jan 2014 17:29:16 +0000 Subject: This implements a better (more python-conformant) list.sort. It's not really about that, though; it's about me figuring out a sane way forward for keyword-argument functions (and function metadata). But it's useful as is, and shouldn't break any existing code, so here you have it; I'm going to park it in my mind for a bit while sorting out the rest of the dict branch. --- py/objinstance.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'py/objinstance.c') diff --git a/py/objinstance.c b/py/objinstance.c index 8ef2773fd9..c26f365597 100644 --- a/py/objinstance.c +++ b/py/objinstance.c @@ -90,15 +90,8 @@ void mp_obj_instance_store_attr(mp_obj_t self_in, qstr attr, mp_obj_t value) { } const mp_obj_type_t instance_type = { - { &mp_const_type }, - "instance", - NULL, // print - NULL, // make_new - NULL, // call_n - NULL, // unary_op - NULL, // binary_op - NULL, // getiter - NULL, // iternext + .base = { &mp_const_type }, + .name = "instance", .methods = {{NULL, NULL},}, }; -- cgit v1.2.3