[Python-3000] Possible py3k problem.

python-3000 at udmvt.ru python-3000 at udmvt.ru
Wed Nov 19 10:07:44 CET 2008


On Tue, Nov 18, 2008 at 03:26:32PM -0500, Lambert, David W (S&T) wrote:
> 
> Attached program works with
> 
>         callback = GSL_FUNCTION(self.f)
>         set_with_values(mnzr,callback,xn,fn,xLB,fLB,xUB,fUB)
> 
> But core dumps with
> 
>         set_with_values(mnzr,GSL_FUNCTION(self.f),xn,fn,xLB,fLB,xUB,fUB)
> 
> 
> I do not understand the difference.  Must be one of these possibilities:
It would be interesting to know if slightly modified first version works
too:
   set_with_values(mnzr,(typeof(callback))GSL_FUNCTION(self.f),xn,fn,xLB,fLB,xUB,fUB)

I'm not sure, that it will segfault too. But can't test it on Opteron, sorry
for that.

To clear out the situation, just want to ask, what is the type of callback
variable and how it differs from the type of GSL_FUNCTION(...) expression.



More information about the Python-3000 mailing list