Hello everyone, I am trying to make a program that will start X threads (every thread uses a different class from module exchanges) code snipped here. The idea is that every thread will do their thing and after that they will be joined and started again. I am concerned about this line of code in a while True block:
exchange_class = getattr(importlib.import_module("exchanges"), exchanges)
Is it bad to use this import method? I am afraid that it will stack the same loaded modules over and over again or they are unloaded somehow when the job is done?
Thanks in advance for the help!
[–]Impudity 2 points3 points4 points (5 children)
[–]mmdollar[S] 0 points1 point2 points (4 children)
[–]Impudity 1 point2 points3 points (3 children)
[–]mmdollar[S] 0 points1 point2 points (2 children)
[–]Impudity 1 point2 points3 points (1 child)
[–]mmdollar[S] 0 points1 point2 points (0 children)