i got a function that takes an object as an argument and calls a method of that object. the method simply prints something out and doesnt return anything.
def func(someobject):
someobject.method()
now i got a list of a bunch of objects which i want to pass to the "func" function.
I already tried using the map function like this:
list = [object1, object2, object3]
map(func, list)
however it only works when i do:
tuple(map(func, list))
later i want to the method to communicate with an API so my goal is to use multiprocessing to speed up the whole proccess, however i can't even get it right normally xD.
excuse me if I made a rookie mistake, I'm quite new to python and programming in general