ImportError                               Traceback (most recent call last)
C:\Python27\lib\site-packages\IPython\utils\py3compat.pyc in
execfile(fname, glob, loc)
    166             else:
    167                 filename = fname
--> 168             exec compile(scripttext, filename, 'exec') in glob, loc
    169     else:
    170         def execfile(fname, *where):

C:\Users\as\hemanta\noorm.py in <module>()
      1 import numpy as np
----> 2 from scipy import brentq
      3 import matplotlib.pyplot as plt
      4 from pylab import twinx
      5 from scipy.integrate import quad

ImportError: cannot import name brentq


Question:
like 'from pylab import twinx' why could not i write 'from scipy
import brentq'.Instead i have to write 'from scipy.optimize import
brentq'.But why???
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to