Python: Why should ‘from import *’ be prohibited?
I believe by “in the middle of your program” you are talking about an import inside a function definition: def f(): from module import * # not allowed This is not allowed because it would make optimizing the body of the function too hard. The Python implementation wants to know all of the names of … Read more