Skip to content

not implemented ast ast_starred #285

Closed
@D4RGAN

Description

@D4RGAN

Hi I was trying to make a list of times for the @time_trigger which i could easily change with another function.
So for example instead of writing @time_trigger("once(17:15:05)","once(16:00:00)","once(08:35:45)") i would have a list l = ["once(17:15:05)","once(16:00:00)","once(08:35:45)"] then i could use this list in my @time_trigger like this @time_trigger(l). This did not work because a String was wanted so after some googling I learned about unpacking and thought I found my solution (my programming knowledge is mostly from the internet, so I probabaly lack alot of basic understanding, sorry).

But when I tried @time_trigger(*l) I got the error "Exception in </config/pyscript/Test.py> line 47: @time_trigger(*l) ^ NotImplementedError: file.Test: not implemented ast ast_starred".

If I understand this unpacking is not implemented or am I doing somehting wrong? And would there be another solution to my problem?

Thank you for the help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions