Re: dot operations

2007-01-11 Thread Dan Bishop
On Jan 11, 10:21 am, "Steven W. Orr" <[EMAIL PROTECTED]> wrote: > On Thursday, Jan 11th 2007 at 11:41 +0100, quoth robert: > > =>[EMAIL PROTECTED] wrote:=>> Hi, > =>> Frequently I get to do like this: > =>> a = (1, 2, 3, 4) # some dummy values > =>> b = (4, 3, 2, 1) > =>> import operator > =>> c =

Re: dot operations

2007-01-11 Thread Steven D'Aprano
On Thu, 11 Jan 2007 06:06:39 -0800, [EMAIL PROTECTED] wrote: >> [EMAIL PROTECTED] wrote: >> > Hi, >> > Frequently I get to do like this: >> > a = (1, 2, 3, 4) # some dummy values >> > b = (4, 3, 2, 1) >> > import operator >> > c = map(operator.add, a, b) >> > >> > I am finding the last line not v

Re: dot operations

2007-01-11 Thread Steven W. Orr
On Thursday, Jan 11th 2007 at 11:41 +0100, quoth robert: =>[EMAIL PROTECTED] wrote: =>> Hi, =>> Frequently I get to do like this: =>> a = (1, 2, 3, 4) # some dummy values =>> b = (4, 3, 2, 1) =>> import operator =>> c = map(operator.add, a, b) =>> =>> I am finding the last line not very readable

Re: dot operations

2007-01-11 Thread [EMAIL PROTECTED]
Paddy wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > Frequently I get to do like this: > > a = (1, 2, 3, 4) # some dummy values > > b = (4, 3, 2, 1) > > import operator > > c = map(operator.add, a, b) > > > > I am finding the last line not very readable especially when I combine > > couple of such

Re: dot operations

2007-01-11 Thread Paddy
[EMAIL PROTECTED] wrote: > Hi, > Frequently I get to do like this: > a = (1, 2, 3, 4) # some dummy values > b = (4, 3, 2, 1) > import operator > c = map(operator.add, a, b) > > I am finding the last line not very readable especially when I combine > couple of such operations into one line. Is it

Re: dot operations

2007-01-11 Thread robert
[EMAIL PROTECTED] wrote: > Hi, > Frequently I get to do like this: > a = (1, 2, 3, 4) # some dummy values > b = (4, 3, 2, 1) > import operator > c = map(operator.add, a, b) > > I am finding the last line not very readable especially when I combine > couple of such operations into one line. Is it

dot operations

2007-01-11 Thread [EMAIL PROTECTED]
Hi, Frequently I get to do like this: a = (1, 2, 3, 4) # some dummy values b = (4, 3, 2, 1) import operator c = map(operator.add, a, b) I am finding the last line not very readable especially when I combine couple of such operations into one line. Is it possible to overload operators, so that, I