On Sat, Dec 4, 2010 at 4:27 PM, Ondrej Certik <[email protected]> wrote:
> On Sat, Dec 4, 2010 at 3:38 PM, Vitja Makarov <[email protected]> wrote:
>> 2010/12/4 Ondrej Certik <[email protected]>:
>>> Hi,
>>>
>>> I was missing the option to tell Cython to stop on the first error. So
>>> I have implemented it:
>>>
>>> https://github.com/cython/cython/pull/3
>>>
>>> Ondrej
>>>
>>
>> Hi!
>>
>> Is that a good idea to call sys.exit() in Errors.py maybe there is
>> another way to stop compilation?
>
> Yes, that is something that I was not sure when I coded it, as I am
> not too familiar with Cython internals.

Hmm... that's a good point. I wasn't thinking about that. Actually the
cleanest would probably be to throw an exception and catch it higher
up. This woud have the advantage of being able to do some cleanup
(e.g. so you don't have half-generated C files).

- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to