Convert Python types to proper Python type hierarchy.
Now much more inline with how CPython does types.
This commit is contained in:
@@ -26,6 +26,7 @@ static const mp_obj_type_t range_type = {
|
||||
{ &mp_const_type} ,
|
||||
"range",
|
||||
NULL, // print
|
||||
NULL, // make_new
|
||||
NULL, // call_n
|
||||
NULL, // unary_op
|
||||
NULL, // binary_op
|
||||
@@ -70,6 +71,7 @@ static const mp_obj_type_t range_it_type = {
|
||||
{ &mp_const_type },
|
||||
"range_iterator",
|
||||
NULL, // print
|
||||
NULL, // make_new
|
||||
NULL, // call_n
|
||||
NULL, // unary_op
|
||||
NULL, // binary_op
|
||||
|
||||
Reference in New Issue
Block a user