Re: [Python-Dev] Status of mingw and Python 2.6 ?

2008-07-26 Thread Amaury Forgeot d'Arc
Jim Kleckner wrote: I gave it a try with cygwin-hosted mingw just to see if that would work as an alternative to VS2008/VC9 to figure out some linkage problems. I tried: python setup.py build_ext --compiler mingw32 and got a version string issue noted below which rejects the version

Re: [Python-Dev] Infix operators

2008-07-26 Thread Nick Coghlan
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 problem of determining the meaning of x=fooz(4,6). Since it's not

Re: [Python-Dev] Matrix product

2008-07-26 Thread daniel . stutzbach
The desire for a new operator for matrix mutltiplication is because binary prefix operators are horrible for expressin this kind of thing, right? Stuff like this is hard to write, read, and debug (especially when checking it against an infix formula): mmul(mmul(mmul(a, b), c), d) How about just

Re: [Python-Dev] Matrix product

2008-07-26 Thread Steven D'Aprano
On Sun, 27 Jul 2008 02:23:11 am [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) Additionally, mmul could then optimize the order of the multiplications (e.g., depending the dimensions

Re: [Python-Dev] Any PEP about 2.6 - 3000 code transition?

2008-07-26 Thread Lennart Regebro
I've added a setup.py to the python-incompatibilities projects code, so adding c-extention modules should now be much easier. I don't do much c-development myself, so I'm not the right person to do this, but anybody that feels like adding C-extensions to this project is more than welcome to do so.

[Python-Dev] Possible small csv.DictReader change

2008-07-26 Thread skip
A new issue in the tracker: http://bugs.python.org/issue3436 points out that the csv module's DictReader class doesn't know the fieldnames defined in the file until you've fetched the first row of data. It's fairly easy to change the behavior so that __init__ automatically grabs the