The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Why does the technical programmers doesn’t import all?

Why does the technical programmers doesn’t import all?

0
Votes
1
Answer

Why does the technical programmers doesn’t import all from math using the mentioned command?
 
Example: from math import *

1 Answer

365 Team
0
Votes

Hi Svetoslav!
 
Because of a few types of reasons I’ll try to simplify below.
 
1) in case the number of objects being imported is big, it can be inefficient
2) it does not specifically indicate which objects you intend to use; so it reduces the readability of your code
3) because it deters some software tools from detecting errors in your code.
 
Hope this helps.
Best,
Martin

×
EXTENDED SALE
Learn Data Science this Summer!
Get 50% OFF