[Scipy-tickets] [SciPy] #1541: `scipy.misc.info` bug with some inputs on Python3

SciPy Trac scipy-tickets@scipy....
Sat Oct 22 20:15:52 CDT 2011


#1541: `scipy.misc.info` bug with some inputs on Python3
------------------------+---------------------------------------------------
 Reporter:  JBernardo   |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  scipy.misc  |     Version:  0.9.0      
 Keywords:  info, py3k  |  
------------------------+---------------------------------------------------
 I an error after searching for some strings e.g. 'fft' on
 '''scipy.misc.info'''. I use the Python 3.2 x64 on Windows 7 (scipy 0.9.0)

 I get almost the same error when I input other object like numbers and
 lists.

 I can't reproduce the error with Python 2.7.2 on my Ubuntu 11.10 x64
 machine with the same scipy version. So the bug may be in the port to
 py3k...

 ''
 For `types` (class objects), the function works fine.''


 == Tracebacks: ==

 {{{
 >>> scipy.misc.info('fft')
 [ Some valid output here ... ]

 Traceback (most recent call last):
   File "<pyshell#31>", line 1, in <module>
     scipy.misc.info('fft')
   File "C:\Python32\lib\site-packages\scipy\misc\__init__.py", line 10, in
 info
     return _info(object, maxwidth, output, toplevel)
   File "C:\Python32\lib\site-packages\numpy\lib\utils.py", line 534, in
 info
     info(obj)
   File "C:\Python32\lib\site-packages\numpy\lib\utils.py", line 593, in
 info
     elif type(object) is types.InstanceType: ## check for __call__ method
 AttributeError: 'module' object has no attribute 'InstanceType'

 }}}


 ----


 {{{
 >>> scipy.misc.info([])
 Traceback (most recent call last):
   File "<pyshell#32>", line 1, in <module>
     scipy.misc.info([])
   File "C:\Python32\lib\site-packages\scipy\misc\__init__.py", line 10, in
 info
     return _info(object, maxwidth, output, toplevel)
   File "C:\Python32\lib\site-packages\numpy\lib\utils.py", line 593, in
 info
     elif type(object) is types.InstanceType: ## check for __call__ method
 AttributeError: 'module' object has no attribute 'InstanceType'

 }}}

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


More information about the Scipy-tickets mailing list