Skip to content

Allow the schedule entry to accept iterable arguments #123

@mitchnegus

Description

@mitchnegus

When the ScheduleEntry.set_executable method is called it requires that the input arguments be a list or a string. This means that it doesn't accept arguments that might be expected to be acceptable—tuples, sequences, generators, etc. Same goes for methods that rely on this one, such as VMEndpoint.run_executable in the base MC repo.

The docs indicate these type requirements, so this is a feature request not a bug. However, without consulting the docs first, the behavior seems similar to the subprocess.run/subprocess.Popen interface which does allow generic sequences.

Since the arguments are just converted to a string, it seems like it would have relatively few (if any) impacts outside that method, and it seems like it would make the interface friendlier in a Pythonic kind of way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions