[Numpy-tickets] [NumPy] #962: f2py external callbacks don't work

NumPy numpy-tickets@scipy....
Fri Nov 28 06:38:50 CST 2008


#962: f2py external callbacks don't work
------------------------+---------------------------------------------------
 Reporter:  wieferink   |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  1.3.0   
Component:  numpy.f2py  |     Version:  devel   
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 I have attached an extension module using a callback which relies on the
 existence of an external name (the callback is not passed as an argument).

 The f2py module in the tarball builds fine, but according to Pearu
 Peterson should not add cb_func to the interface of cb_func because
 intent(callback) means something different in this context.

 Pearu Peterson wrote:

 {{{
 Adding intent(callback) cb_func to argument
 list is a f2py bug. Actually, the message
 "analyzeline: missing __user__ module (could be nothing)"
 is indicating this bug (I didn't implement
 the "could be nothing" part;) and "missing module" note
 is misleading.).

 Could someone report this bug to numpy tracker?

 The fix itself should be simple: locate the line
 that outputs the message in f2py/crackfortran.py
 file and intent the next line by one level:

 if '__user__' not in groupcache[groupcounter-2]['name']:
   #outmess('analyzeline: missing __user__ module (could be nothing)\n')
   groupcache[groupcounter]['args'].append(k)
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/962>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list