Here is a clean way to import multiple items from the same module.

    # py:2.7
  
    # Do this 
    from module import (func1, func2, func3
                        func4, func5, func6,
                        func7, func8, func9
                        )
    
    # Instead of this
    from module import func1, func2, func3, func4, func5, func6, func7, func8, func9

January 1, 2016 python


Previous post
Local File Logging Here is a small function to log to a local file in python, I use it all the time
Next post
Python Classes by Example ###Subclassing