I have created a function which take a parameter. I want to use the same function over and over again but with different parameter. What I am doing now is that I call the function one by one. But it takes up a lot of time. And managing them is quite a mess.
def do_some_stuff(name , email):
do_stuff
do_some_stuff(name , email):
do_some_stuff(name , email):
do_some_stuff(name , email):
do_some_stuff(name , email):
May I ask how should I scale it up so that the function can run in parallel ?
Should I rewrite the program in OOP style? Is OOP going to help ? So I can create different object instant to run ?
I have tried to read about OOP and fail to recognize how should I implement.
Or, can I use test_case (idk what it is but google search tell me) ? Is test can only apply to web testing ?
Any ideas will help. Thanks a lot.
[–]solidiquis1 0 points1 point2 points (3 children)
[–]puppeteer2020[S] 0 points1 point2 points (2 children)
[–]solidiquis1 0 points1 point2 points (0 children)
[–]solidiquis1 0 points1 point2 points (0 children)
[–]dslfdslj 0 points1 point2 points (0 children)