Python has a complex namespace and modules, so I'm not sure about that. Usually the python module and something that is imported from it have different names or only the module is imported, and the content is used with the full name:
import copy # will use copy.copy from time import localtime # "localtime" has different name from "time".
But what if the module has the same name as what I import from it? For instance:
from copy import copy copy( "something" )
It is safe? Maybe these are some complex consequences that I do not see?
source share