title: Trace/BPT trap when calling urllib.urlopen
body: <p>For some reason I'm getting a Trace/BPT trap error when calling <code>urllib.urlopen</code>. I've tried both <code>urllib</code> and <code>urllib2</code> with identical results. Here is the code which throws the error:</p>
  
  <pre><code>def get_url(url):
      from urllib2 import urlopen
      if not url or not url.startswith('http://'): return None
      return urlopen(url).read() # FIXME!
  </code></pre>
  
  <p>I should add that this code is running on a CherryPy webserver with web.py.</p>
  
  <p>Someone requested a traceback. Unfortunately, there is none. <code>Trace/BPT trap</code> is outputted to the terminal and the process terminates. E.g.</p>
  
  <pre><code>dloewenherz@andros project $ sudo ./index.py 80
  http://0.0.0.0:80/
  # Here I visit the page which contains the get_url(url) method
  Trace/BPT trap
  dloewenherz@andros project $
  </code></pre>
  
  <p>Edit: I am running OS X 10.6.2, web.py 0.33, Python 2.6.2, and CherryPy 3.1.2.</p>