Re: [Python-Dev] Infix operators

2008-07-27 Thread Steve Holden
Charles Hixson wrote: [...] OTOH, it seems far too late in the development process to be inserting such a change in Python 2.6 or 3.0. If this is important to you, you should probably propose it for 2.7/3.1. It's been too late for over three months now, and the suggestions I've seen so far a

Re: [Python-Dev] Infix operators

2008-07-27 Thread Lennart Regebro
On Sun, Jul 27, 2008 at 19:43, Charles Hixson <[EMAIL PROTECTED]> wrote: > Therefore it seems to me that the appropriate thing is to create a convention > that bar-somethingprintable-bar And the "something-printable" shows the main flaw of this approach. Mathematics indeed uses a lot of symbols to

Re: [Python-Dev] Infix operators

2008-07-27 Thread Charles Hixson
On Saturday 26 July 2008 01:23:17 am Nick Coghlan wrote: > Sebastien Loisel wrote: > > However, just for posterity (and I'm not going to pursue the argument > > further than this), I'll say this. The problem of determining the > > meaning (or overridability or whatever) of x=4$6 is the same as the

Re: [Python-Dev] Matrix product

2008-07-27 Thread Greg Ewing
[EMAIL PROTECTED] wrote: How about just making a matrix multiply function that can take many arguments? I think this is pretty readable: mmul(a, b, c, d) The multiplications aren't necessarily all together, e.g. a*b + c*d + e*f would become mmul(a, b) + mmul(c, d) + mmul(e, f) -- Gre