I will give you my specific example but this is a general python question.
I have a list of apscheduler job objects Link I am trying to figure out what is the most efficient way to get a list of the apscheduler job property, 'kwargs' from my list of apscheduler jobs.
I know I can just iterate through the whole list and make a new list of kwargs, but I was wondering if there is a more efficient/ cleaner way to do this in python, since I am new to it. Thanks!
from apscheduler.scheduler import Scheduler
schedule = Scheduler()
jobs = schedule.get_jobs() #jobs is a list of apscheduler jobs
jobs_kwargs = ???