To make a simple example, I don't care about the practicality, just the implemenation. Say I create some class with a few methods. I want to create a list containing whether or not they're callable. So I can take this example from: Finding what methods an object has
[method for method in dir(object) if callable(getattr(object, method))]
It's great for what it does, but if for the heck of it, I want to use map and I have object, which is a non-iterable item...
map(callable,map(getattr,object,dir(object)))
To focus on the real problem:
I have an iterable list, and a non iterable item. What is the best solution that lets me use some non-iterable item and an iterable item, so that I can utilize map?