0
Can someone please explain why I would want to only import part of a module instead of all of it?
2 odpowiedzi
+ 2
it makes the program run faster since it doesn't have to load all the other functions, and it saves memory since it loads just the ones you need
- 1
Yea.. It's what sean said...
.
For example.. You need to use only square root fuction from math module... This method will save you some memory and runtime...