[Cython] Message system refactoring
Stefan Behnel
stefan_ml at behnel.de
Mon Mar 21 12:01:47 CET 2011
Vitja Makarov, 21.03.2011 11:45:
> Now error/warning messages are stored in global variables at
> Cython.Compiler.Errors
Pyrex legacy. Even the visible warning level is a global variable
("LEVEL"). That's a very bad interface.
> 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
Stefan
More information about the cython-devel
mailing list