Re: [Cython] General generator expressions

2010-12-09 Thread Stefan Behnel
Vitja Makarov, 08.12.2010 22:45: Please review this patch. It's not yet finished, and mostly doesn't work. But you can take a look at patch and generated code. *Way* cool, thanks! I'll take a close look ASAP. Please feel free to send in a new patch when you have it. If you use hg, you can use

Re: [Cython] General generator expressions

2010-12-09 Thread Robert Bradshaw
On Thu, Dec 9, 2010 at 1:46 AM, Stefan Behnel stefan...@behnel.de wrote: Vitja Makarov, 08.12.2010 22:45: Please review this patch. It's not yet finished, and mostly doesn't work. But you can take a look at patch and generated code. *Way* cool, thanks! I'll take a close look ASAP. Please feel

Re: [Cython] General generator expressions

2010-12-09 Thread Stefan Behnel
Robert Bradshaw, 09.12.2010 11:00: On Thu, Dec 9, 2010 at 1:46 AM, Stefan Behnel wrote: Vitja Makarov, 08.12.2010 22:45: Please review this patch. It's not yet finished, and mostly doesn't work. But you can take a look at patch and generated code. *Way* cool, thanks! I'll take a close look

Re: [Cython] General generator expressions

2010-12-09 Thread Robert Bradshaw
On Thu, Dec 9, 2010 at 2:10 AM, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 09.12.2010 11:00: On Thu, Dec 9, 2010 at 1:46 AM, Stefan Behnel wrote: Vitja Makarov, 08.12.2010 22:45: Please review this patch. It's not yet finished, and mostly doesn't work. But you can take a look

Re: [Cython] make cython stop on the first error

2010-12-09 Thread Robert Bradshaw
On Sun, Dec 5, 2010 at 5:42 PM, Ondrej Certik ond...@certik.cz wrote: On Sat, Dec 4, 2010 at 11:49 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Sat, Dec 4, 2010 at 9:25 PM, Dag Sverre Seljebotn da...@student.matnat.uio.no wrote: On 12/05/2010 01:27 AM, Ondrej Certik wrote: On

Re: [Cython] General generator expressions

2010-12-09 Thread Vitja Makarov
2010/12/9 Robert Bradshaw rober...@math.washington.edu: On Thu, Dec 9, 2010 at 2:10 AM, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 09.12.2010 11:00: On Thu, Dec 9, 2010 at 1:46 AM, Stefan Behnel wrote: Vitja Makarov, 08.12.2010 22:45: Please review this patch. It's not yet

Re: [Cython] General generator expressions

2010-12-09 Thread Robert Bradshaw
On Thu, Dec 9, 2010 at 2:50 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2010/12/9 Robert Bradshaw rober...@math.washington.edu: On Thu, Dec 9, 2010 at 2:10 AM, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 09.12.2010 11:00: On Thu, Dec 9, 2010 at 1:46 AM, Stefan Behnel wrote:

Re: [Cython] Cython 0.14

2010-12-09 Thread Robert Bradshaw
A beta is up at http://cython.org/release/Cython-0.14.beta1.tar.gz . I'm planning on rolling a release candidate in the next day or two, and if there are no issues, that will become the release. - Robert ___ Cython-dev mailing list

[Cython] Complex to float coercion

2010-12-09 Thread Dag Sverre Seljebotn
In the ongoing fwrapification of SciPy [1], I'm getting regression test breakage because of this: def func(float x): return x func(1 + 0j) Traceback (most recent call last): ... TypeError: can't convert complex to float I'm wondering: Would people be OK to Cython so that

Re: [Cython] Cython 0.14

2010-12-09 Thread Robert Bradshaw
On Thu, Dec 9, 2010 at 4:27 AM, Robert Bradshaw rober...@math.washington.edu wrote: A beta is up at http://cython.org/release/Cython-0.14.beta1.tar.gz . I'm planning on rolling a release candidate in the next day or two, and if there are no issues, that will become the release. Make that

Re: [Cython] Complex to float coercion

2010-12-09 Thread Robert Bradshaw
On Thu, Dec 9, 2010 at 5:58 AM, Dag Sverre Seljebotn da...@student.matnat.uio.no wrote: In the ongoing fwrapification of SciPy [1], I'm getting regression test breakage because of this: def func(float x):     return x   func(1 + 0j)     Traceback (most recent call last):     ...    

Re: [Cython] Complex to float coercion

2010-12-09 Thread Neal Becker
Dag Sverre Seljebotn wrote: In the ongoing fwrapification of SciPy [1], I'm getting regression test breakage because of this: def func(float x): return x func(1 + 0j) Traceback (most recent call last): ... TypeError: can't convert complex to float I'm

Re: [Cython] Cython 0.14

2010-12-09 Thread Connell, Paul
Hi, I can't install the 0.14 Beta2 using Windows 7 x64, Python 2.7 x64. One of the generated modules fails to compile. building 'Cython.Compiler.Parsing' extension C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include

Re: [Cython] Complex to float coercion

2010-12-09 Thread Stefan Behnel
Neal Becker, 09.12.2010 15:21: I prefer failing hard. I believe that allowing complex to be used in place of float is a wart in numpy that leads to unintentional hidden mistakes. If I want to take the real part I would say so. +1 Stefan ___

Re: [Cython] Cython 0.14

2010-12-09 Thread Stefan Behnel
Connell, Paul, 09.12.2010 15:54: I can't install the 0.14 Beta2 using Windows 7 x64, Python 2.7 x64. One of the generated modules fails to compile. building 'Cython.Compiler.Parsing' extension C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3

Re: [Cython] Cython 0.14

2010-12-09 Thread Connell, Paul
Yes, that's worked. Thanks! FYI I have also now checked, and all my Cython code here compiles and works fine with it too (using --cplus), no regression problems discovered yet. Paul -Original Message- From: cython-dev-boun...@codespeak.net [mailto:cython-dev-boun...@codespeak.net]

Re: [Cython] General generator expressions

2010-12-09 Thread Vitja Makarov
2010/12/9 Robert Bradshaw rober...@math.washington.edu: On Thu, Dec 9, 2010 at 2:50 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2010/12/9 Robert Bradshaw rober...@math.washington.edu: On Thu, Dec 9, 2010 at 2:10 AM, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 09.12.2010

Re: [Cython] General generator expressions

2010-12-09 Thread Vitja Makarov
2010/12/9 Vitja Makarov vitja.maka...@gmail.com: 2010/12/9 Robert Bradshaw rober...@math.washington.edu: On Thu, Dec 9, 2010 at 2:50 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2010/12/9 Robert Bradshaw rober...@math.washington.edu: On Thu, Dec 9, 2010 at 2:10 AM, Stefan Behnel

Re: [Cython] Complex to float coercion

2010-12-09 Thread Greg Ewing
Neal Becker wrote: The proposal to allow when im part is exactly zero is a horrible kluge. Not to mention that exactly zero is often an ill-defined concept in numerical algorithms. You have no way of knowing whether it really is zero or just something small that happened to get rounded down to

Re: [Cython] Complex to float coercion

2010-12-09 Thread Dag Sverre Seljebotn
Greg Ewing wrote: Neal Becker wrote: The proposal to allow when im part is exactly zero is a horrible kluge. Not to mention that exactly zero is often an ill-defined concept in numerical algorithms. You have no way of knowing whether it really is zero or just something small that

Re: [Cython] General generator expressions

2010-12-09 Thread Robert Bradshaw
On Thu, Dec 9, 2010 at 12:45 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2010/12/9 Vitja Makarov vitja.maka...@gmail.com: 2010/12/9 Robert Bradshaw rober...@math.washington.edu: On Thu, Dec 9, 2010 at 2:50 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2010/12/9 Robert Bradshaw

Re: [Cython] General generator expressions

2010-12-09 Thread Stefan Behnel
Stefan Behnel, 09.12.2010 10:46: Vitja Makarov, 08.12.2010 22:45: Please review this patch. It's not yet finished, and mostly doesn't work. But you can take a look at patch and generated code. I'll take a close look ASAP. - Temps are saved/restored/allocated inside YieldExprNode using