Re: [Python-Dev] __setcall__

2010-10-26 Thread Greg Ewing
Robert Kern wrote: This thread is off-topic for python-dev, which is intended for the development *of* the Python interpreter, not development *in* Python. I got the impression that he was asking for a new feature -- i.e. to be allowed to write a call on the left of an assignment, with a corre

Re: [Python-Dev] __setcall__

2010-10-26 Thread Robert Kern
On 10/26/10 5:05 PM, Bj Raz wrote: I'll look into SAGE, I am still curious if there is, a way, to write this in native python, cause I'm currently plotting in Autodesk Maya, and using Python. This thread is off-topic for python-dev, which is intended for the development *of* the Python interp

Re: [Python-Dev] __setcall__

2010-10-26 Thread Bj Raz
I'll look into SAGE, I am still curious if there is, a way, to write this in native python, cause I'm currently plotting in Autodesk Maya, and using Python. Sent from my iPhone On Oct 24, 2010, at 12:51 PM, Benjamin Peterson wrote: > 2010/10/24 Bj Raz : >> I was looking for a way to set a fun

Re: [Python-Dev] __setcall__

2010-10-24 Thread Benjamin Peterson
2010/10/24 Bj Raz : > I was looking for a way to set a function being equal to another function: > q(m+1) = q(m)+ ((-1)^m) * exp(lnanswer); > I was hoping to use something like this: > (q).__setcall__.(m+1) = (q).__setcall__.(m)+ ((-1)^m) * exp(lnanswer); > As a work around. > But I have not found

[Python-Dev] __setcall__

2010-10-24 Thread Bj Raz
I was looking for a way to set a function being equal to another function: q(m+1) = q(m)+ ((-1)^m) * exp(lnanswer); I was hoping to use something like this: (q).__setcall__.(m+1) = (q).__setcall__.(m)+ ((-1)^m) * exp(lnanswer); As a work around. But I have not found the `__setcall__' built in being