J. Clifford Dyer wrote:
> I think that's the first time I've actually seen someone use a Monty
> Python theme for a python example, and I must say, I like it. However,
> "We are all out of Wensleydale."
>
> Cheers,
> Cliff
Oh, then you clearly don't waste nearly enough time on this newsgroup ;
Steven D'Aprano wrote:
> On Tue, 23 Jan 2007 18:07:55 -0800, Russ wrote:
>
>> Achim Domma wrote:
>>> Hi,
>>>
>>> I want to use Python to script some formulas in my application. The user
>>> should be able to write something like
>>>
>>> A = B * C
>>>
>>> where A,B,C are instances of some wrapper c
> -Original Message-
> From: Gabriel Genellina [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 23, 2007 9:24 PM
> To: python-list@python.org
> Subject: Re: Overloading assignment operator
>
> "Carroll, Barry" <[EMAIL PROTECTED]> escribió
Hi thre,
On Jan 24, 5:24 am, Achim Domma <[EMAIL PROTECTED]> wrote:
> I want to use Python to script some formulas in my application.
Depending on what you're trying to do, you might possibly find it
useful to lake a look at the approach used by PyGINAC, which is a
symbolic algebra system (in C++
On Tue, 23 Jan 2007 18:07:55 -0800, Russ wrote:
> Achim Domma wrote:
>> Hi,
>>
>> I want to use Python to script some formulas in my application. The user
>> should be able to write something like
>>
>> A = B * C
>>
>> where A,B,C are instances of some wrapper classes. Overloading * is no
>> probl
"Carroll, Barry" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> * ... the assignment operator is used to assign an
> * object to a name in the current namespace... IOW, you cannot "overload
> * the assignment operator."
> (wesley chun)
This is the key concept, if you want to
Achim Domma wrote:
> Hi,
>
> I want to use Python to script some formulas in my application. The user
> should be able to write something like
>
> A = B * C
>
> where A,B,C are instances of some wrapper classes. Overloading * is no
> problem but I cannot overload the assignment of A. I understand t
> -Original Message-
> From: Achim Domma [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 23, 2007 10:25 AM
> To: python-list@python.org
> Subject: Overloading assignment operator
>
> Hi,
>
> I want to use Python to script some formulas in my application. T
Steven D'Aprano wrote:
> On Tue, 23 Jan 2007 19:42:01 +0100, Peter Otten wrote:
>
>> Achim Domma wrote:
>>
>>> I want to use Python to script some formulas in my application. The user
>>> should be able to write something like
>>>
>>> A = B * C
>>>
>>> where A,B,C are instances of some wrapper
Paul McGuire wrote:
> Simple option: how do you feel about using '<<=' instead of '=' (by
> defining __ilshift__)? This gives you:
>
> A <<= B * C
>
> (looks sort of like "injecting" the result of B times C into A)
Thanks! That is exactly the kind of solution I was looking for! :-)
Achim
--
On Tue, 23 Jan 2007 19:42:01 +0100, Peter Otten wrote:
> Achim Domma wrote:
>
>> I want to use Python to script some formulas in my application. The user
>> should be able to write something like
>>
>> A = B * C
>>
>> where A,B,C are instances of some wrapper classes. Overloading * is no
>> pro
Achim Domma schrieb:
> Hi,
>
> I want to use Python to script some formulas in my application. The user
> should be able to write something like
>
> A = B * C
>
> where A,B,C are instances of some wrapper classes. Overloading * is no
> problem but I cannot overload the assignment of A. I understa
Achim Domma wrote:
> I want to use Python to script some formulas in my application. The user
> should be able to write something like
>
> A = B * C
>
> where A,B,C are instances of some wrapper classes. Overloading * is no
> problem but I cannot overload the assignment of A. I understand that
On Jan 23, 12:24 pm, Achim Domma <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to use Python to script some formulas in my application. The user
> should be able to write something like
>
> A = B * C
>
> where A,B,C are instances of some wrapper classes. Overloading * is no
> problem but I cannot ove
Achim Domma wrote:
> I want to use Python to script some formulas in my application. The user
> should be able to write something like
>
> A = B * C
>
> where A,B,C are instances of some wrapper classes. Overloading * is no
> problem but I cannot overload the assignment of A. I understand that
>
Hi,
I want to use Python to script some formulas in my application. The user
should be able to write something like
A = B * C
where A,B,C are instances of some wrapper classes. Overloading * is no
problem but I cannot overload the assignment of A. I understand that
this is due to the nature o
16 matches
Mail list logo