get every item in mp_obj_list_t
#9650
Replies: 2 comments 4 replies
-
In MicroPython, every object is an So you need to know what type you expect. In this case, float, so use Note the mp_float_t is important, because it depends on whether MicroPython is built for single or double precision float as to what the built-in type will be. |
Beta Was this translation helpful? Give feedback.
-
It would be fantastic if this could be added in the documentation under internals here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I am actually trying to store a value from micro python list into a temporary variable. How can I do it?
For example, let say I have a list pointer variable named
input_list
which was declared bymp_obj_list_t *input_list;
Now I wish to get the elements
But when i try to compiled the library, i get the following error:
What is the correct way of storing value in
temp
variable, assuming that list is only made of integers or floating values?Beta Was this translation helpful? Give feedback.
All reactions