Re: [Cython] Scoped expressions and generators problem

2011-05-20 Thread Stefan Behnel
Vitja Makarov, 19.05.2011 22:34: I don't know how to handle scopedexprs in generators, here are some examples: [(yield i) for i in l] or [i for i in yield] In Python3 language mode scoped expression is created for list comprehension and loop variable is moved there. Not only that. In Python 3

[Cython] nonecheck directive

2011-05-20 Thread Stefan Behnel
Hi, why is the "nonecheck" directive set to False by default? Shouldn't it rather be a "I know what I'm doing" option that allows advanced users to trade speed for safety? The reason I'm asking is that I just enabled its evaluation in NoneCheckNode and immediately got crashes in the test sui

Re: [Cython] nonecheck directive

2011-05-20 Thread Robert Bradshaw
On Fri, May 20, 2011 at 8:13 AM, Stefan Behnel wrote: > Hi, > > why is the "nonecheck" directive set to False by default? Shouldn't it > rather be a "I know what I'm doing" option that allows advanced users to > trade speed for safety? > > The reason I'm asking is that I just enabled its evaluatio

Re: [Cython] nonecheck directive

2011-05-20 Thread Stefan Behnel
Robert Bradshaw, 20.05.2011 17:33: On Fri, May 20, 2011 at 8:13 AM, Stefan Behnel wrote: why is the "nonecheck" directive set to False by default? Shouldn't it rather be a "I know what I'm doing" option that allows advanced users to trade speed for safety? Erm, trade safety for speed, obviousl