title: 'module' object has no attribute 'basicConfig'
body: <p>I have the following code, copied from the Python manual:</p>
  
  <pre><code>import logging
  LOG_FILENAME = 'example.log'
  logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
  
  logging.debug('This message should go to the log file')
  </code></pre>
  
  <p>When I try to run the script (via <code>python.exe script.py</code>) I get an error of <code>'module' object has no attribute 'basicConfig'</code>.</p>
  
  <p>However when I copy and paste the code in interactive mode (via python.exe then copy and pasting the actual code) I get no error. The code runs fine.</p>
  
  <p>I have python 2.6.6.</p>
  
  <p>Thank you!</p>