I know that import *
is bad, but I sometimes use it for quick prototyping when I feel too lazy to type or remember the imports
I am trying the following code:
from OpenGL.GL import *
shaders.doSomething()
It results in an error: `NameError: global name 'shaders' is not defined'
If I change the imports:
from OpenGL.GL import *
from OpenGL.GL import shaders
shaders.doSomething()
The error disappears. Why does *
not include shaders
?