[Scipy-tickets] [SciPy] #1320: scipi.misc.lookfor throws AttributeError

SciPy Trac scipy-tickets@scipy....
Wed Oct 27 02:56:06 CDT 2010


#1320: scipi.misc.lookfor throws AttributeError
------------------------+---------------------------------------------------
 Reporter:  gerrit      |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  scipy.misc  |     Version:  0.7.2   
 Keywords:              |  
------------------------+---------------------------------------------------
 $ ipython -pylab
 Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
 Type "copyright", "credits" or "license" for more information.

 IPython 0.10 -- An enhanced Interactive Python.
 ?         -> Introduction and overview of IPython's features.
 %quickref -> Quick reference.
 help      -> Python's own help system.
 object?   -> Details about 'object'. ?object also works, ?? prints more.

   Welcome to pylab, a matplotlib-based Python environment.
   For more information, type 'help(pylab)'.

 In [1]: lookfor('test')
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /storage4/home/gerrit/<ipython console> in <module>()

 /usr/lib/python2.6/dist-packages/numpy/lib/utils.pyc in lookfor(what,
 module, import_modules, regenerate)
     572
     573     # Cache

 --> 574     cache = _lookfor_generate_cache(module, import_modules,
 regenerate)
     575
     576     # Search


 /usr/lib/python2.6/dist-packages/numpy/lib/utils.pyc in
 _lookfor_generate_cache(module, import_modules, regenerate)
     722         elif inspect.isclass(item):
     723             kind = "class"
 --> 724             for n, v in inspect.getmembers(item):
     725                 stack.append(("%s.%s" % (name, n), v))
     726         elif callable(item):

 /usr/lib/python2.6/inspect.pyc in getmembers(object, predicate)
     250     results = []
     251     for key in dir(object):
 --> 252         value = getattr(object, key)
     253         if not predicate or predicate(value):
     254             results.append((key, value))

 AttributeError: __abstractmethods__

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1320>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list