title: Python built-in function "compile". What is it used for?
body: <p>I came across a built-in function <a href="http://docs.python.org/2.7/library/functions.html#compile"><code>compile</code></a> today. Though i read the documentation but still do not understand it's usage or where it is applicable. Please can anyone explain with example the use of this function. I will really appreciate examples.</p>
  
  <p>From the documentation, the function takes some parameters as shown below.</p>
  
  <pre><code>compile(source, filename, mode[, flags[, dont_inherit]])
  </code></pre>