diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-05 22:45:23 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-05 22:45:23 +0100 |
commit | 17520224fad7a0c4a742f9b8a46e016c2ba3cc46 (patch) | |
tree | f74b6b0c694ece79f3bbfd032716399ad848f018 /py/objobject.c | |
parent | 7efc5b3f346869cd4177760e6a6b2bb863b425da (diff) |
py: Make all objects and instances derive from object.
This makes isinstance(X, object) and issubclass(X, object) true for all
X.
Diffstat (limited to 'py/objobject.c')
-rw-r--r-- | py/objobject.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/py/objobject.c b/py/objobject.c index 56daa956d..74a4926b3 100644 --- a/py/objobject.c +++ b/py/objobject.c @@ -11,8 +11,6 @@ typedef struct _mp_obj_object_t { mp_obj_base_t base; } mp_obj_object_t; -const mp_obj_type_t mp_type_object; - STATIC mp_obj_t object_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) { if (n_args != 0 || n_kw != 0) { nlr_raise(mp_obj_new_exception_msg(&mp_type_TypeError, "object takes no arguments")); |