[Cython] Message system refactoring

Robert Bradshaw robertwb at math.washington.edu
Mon Mar 21 17:18:57 CET 2011

On Mon, Mar 21, 2011 at 3:51 AM, Dag Sverre Seljebotn
<d.s.seljebotn at astro.uio.no> wrote:
> On 03/21/2011 11:45 AM, Vitja Makarov wrote:
>> Now error/warning messages are stored in global variables at
>> Cython.Compiler.Errors
>> I think it's much better to move error handling into some object,
>> Main.Context for example.
>> Some benefits:
>>  - reduce use of global variables
>>  - allow more then one cython compiler instance at the time
>>  - make it much easy to implement -Werror
>>  - cython directives can affect message system (fast_fail, werror)
>>  - messages could be easily sorted
> +1. I assume the reason this is not done is simply because it would be a lot
> of work and the payback is less than spending time on other stuff.

+1. I'm fine with the change, it's just never been as much of a pain
point as many other things.

> By attaching the error context to "env" and "code" one can avoid a lot of
> signature changes. I think transforms should take the context in their
> constructor.
> Dag Sverre
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> http://mail.python.org/mailman/listinfo/cython-devel

More information about the cython-devel mailing list