Communities for your favorite technologies. Explore all Collectives
Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Get early access and see previews of new features.
In the context ofOk, if your functions are stateless, but still expect an iterable as argument, and that's the whole problem, then this should do:
a,for bsi =in zip(*((si['a'],s: si['b'] a([si['a']]) for si in s)b([si['b']])
In the context of your problem:
a, b = zip(*((si['a'], si['b']) for si in s))
Ok, if your functions are stateless, but still expect an iterable as argument, and that's the whole problem, then this should do:
for si in s: a([si['a']]) b([si['b']])