title: In Python, what happens when you import inside of a function?
body: <p>What are the pros and cons of importing a Python module and/or function inside of a function, with respect to efficiency of speed and of memory?</p>
  
  <p>Does it re-import every time the function is run, or perhaps just once at the beginning whether or not the function is run?</p>