Re: [Numpy-discussion] f2py and callbacks with variables

2015-08-13 Thread Pearu Peterson
Hi Casey, On Wed, Aug 12, 2015 at 11:46 PM, Casey Deen wrote: > Hi Pearu- > >Thanks so much! This works! Can you point me to a reference for the > format of the .pyf files? My ~day of searching found a few pages on the > scipy website, but nothing which went into this amount of detail. >

Re: [Numpy-discussion] f2py and callbacks with variables

2015-08-12 Thread Casey Deen
Hi Pearu- Thanks so much! This works! Can you point me to a reference for the format of the .pyf files? My ~day of searching found a few pages on the scipy website, but nothing which went into this amount of detail. I also asked Stackoverflow, and unless you object, I'd like to add your exp

Re: [Numpy-discussion] f2py and callbacks with variables

2015-08-12 Thread Pearu Peterson
Hi Casey, What you observe, is not a f2py bug. When f2py sees a code like subroutine foo call bar end subroutine foo then it will not make an attempt to analyze bar because of implicit assumption that all statements that has no references to foo arguments are irrelevant for wrapper function ge

[Numpy-discussion] f2py and callbacks with variables

2015-08-12 Thread Casey Deen
Hi all- I've run into what I think might be a bug in f2py and callbacks to python. Or, maybe I'm not using things correctly. I have created a very minimal example which illustrates my problem at: https://github.com/soylentdeen/fluffy-kumquat The issue seems to affect call backs with variabl