Question:

Is it pythonic to pass a list of dictionary keys to iterate, BUT if an empty list is passed, iterate the entire dictionary?

If not suggestions please 😅

My only other approach is two methods, but as there are many features to process this way, it seems overly messy to me.

#python`

@kingfisher a "filter" keyword argument which takes a function is my guess on the pythonic way to handle this but I don't know if that's what I would prefer until I saw more code.