some sources say that we can import all classes and functions from the database module using this syntaxfrom database import don' do this every experienced python programmer will tell you that you should never use this syntax they'll use obscure justifications such as "it clutters up the namespace"which doesn' make much sense to beginners one way to learn why to avoid this syntax is to use it and try to understand your code two years later but we can save some time and two years of poorly written code with quick explanation nowwhen we explicitly import the database class at the top of our file using from database import databasewe can easily see where the database class comes from we might use db database( lines later in the fileand we can quickly look at the imports to see where that database class came from thenif we need clarification as to how to use the database classwe can visit the original file (or import the module in the interactive interpreter and use the help(database databasecommandhoweverif we use the from database import syntaxit takes lot longer to find where that class is located code maintenance becomes nightmare in additionmost editors are able to provide extra functionalitysuch as reliable code completionthe ability to jump to the definition of classor inline documentationif normal imports are used the import syntax usually completely destroys their ability to do this reliably finallyusing the import syntax can bring unexpected objects into our local namespace sureit will import all the classes and functions defined in the module being imported frombut it will also import any classes or modules that were themselves imported into that fileevery name used in module should come from well-specified placewhether it is defined in that moduleor explicitly imported from another module there should be no magic variables that seem to come out of thin air we should always be able to immediately identify where the names in our current namespace originated promise that if you use this evil syntaxyou will one day have extremely frustrating moments of "where on earth can this class be coming from?