and why?
Sometimes I need import all the attributes of a module so I use wildcard importing, but one of my Vim scripts(using flake8 as its syntax checker) always giv
Using the wildcard import can cause subtle bugs:
import sys
os = sys # just for the fun of it... :-D
>>> import os
>>> from foo import *
>>> os.path.join('p1', 'p2')
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'list' object has no attribute 'join'
This is especially important when updating library versions. They might or might not add new variables and break your code in horrible ways.
If you really want to use the * import always place it first so that other imports and definitions take precedence.