namedtuple methods #15277
Answered
by
scruss
billbreit
asked this question in
Using MicroPython
namedtuple methods
#15277
-
I'm trying to use namedtuple collections to the max in order to reduce memory. Is there an equivalent of namedtuple._fields and namedtuple._asdict in MicroPython ? The workarounds are fairly easy, but I noticed a compiler directive for asdict in the namedtuple_obj.c file, so it may be there and I can't find it. Thanks. Bill |
Beta Was this translation helpful? Give feedback.
Answered by
scruss
Jun 13, 2024
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
billbreit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
_asdict
requires MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EVERYTHING defined inmpconfigport.h
. This doesn't seem to be enabled anywhere.