Vitja Makarov, 28.01.2011 07:19:
> 2011/1/27 Stefan Behnel:
>> Vitja Makarov, 27.01.2011 11:19:
>>> https://github.com/vitek/cython/blob/master/Cython/Compiler/ExprNodes.py#L4995
>>>
>>> ....
>>>       def analyse_types(self, env):
>>>           if not self.label_num:
>>>               error(self.pos, "'yield' not supported here")
>>> ....
>>>
>>> This error message should be replaced with assertion on self.label_num
>>> or internal error.
>>
>> Yes, if handled by the transform already.
>>
>
> I tried to handle IfStatNode terminator here:
>
> https://github.com/vitek/cython/commits/uninitialized
>


> About tests I the easiest way is to add compiler directive -Werror

We already have an "errors are fatal" option, but I like this one.


> And add it in cython header comment
>
> # cython: werror=True

Or rather "warnings_are_errors=True".

Stefan
_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to