2 ms·
> I've always thought "from lib import star" is somewhat of a anti-pattern Like patterns, anti-patterns are context sensitive. “from lib import *” is usually a
by dragonwriter 5y ago
> I've always thought "from lib import star" is somewhat of a anti-pattern
Like patterns, anti-patterns are context sensitive. “from lib import *” is usually an anti-pattern, but doing it exactly once in a source file, especially a short one, and especially for demonstration code for the library so imported, is not a problem.
But if you do it two or more times in the same source file...