31 Dec
2020
31 Dec
'20
3:56 p.m.
On 12/29/2020 3:04 PM, Anton Abrosimov wrote:
Way 5: Add default `False` `iter` flag to `dataclass` decorator.
``` def __iter__(self) : return ((f.name, getattr(axes, f.name)) for f in fields(axes)) ```
And use: `plot(**dict(axes))`
I'd suggest you just write your own function to do this. I consider adding dataclasses.asdict and .astuple to be mistakes. Eric