[NumPy-Tickets] [NumPy] #962: f2py external callbacks don't work
NumPy Trac
numpy-tickets@scipy....
Thu Mar 24 02:20:56 CDT 2011
#962: f2py external callbacks don't work
-------------------------+--------------------------------------------------
Reporter: wieferink | Owner: pearu
Type: defect | Status: closed
Priority: normal | Milestone: Unscheduled
Component: numpy.f2py | Version: devel
Resolution: wontfix | Keywords:
-------------------------+--------------------------------------------------
Changes (by pearu):
* status: new => closed
* resolution: => wontfix
Comment:
The issue has been fixed, I don't remember when and why though. So
resolving the ticket as wontfix.
The minimal example works correctly (using numpy 2.0.0.dev8445):
{{{
$ f2py -c master.f90 -m foo
>>> import foo
>>> print foo.worker_caller.__doc__
worker_caller - Function signature:
worker_caller(cb_func,[cb_func_extra_args])
Required arguments:
cb_func : call-back function
Optional arguments:
cb_func_extra_args := () input tuple
Call-back functions:
def cb_func(e__res_e): return
Required arguments:
e__res_e : input string(len=-1)
>>> def cb(s): print 'cb: s=',s
...:
>>> foo.worker_caller(cb)
cb: s= res
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/962#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list