[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnulib-tool-py] func_warning
From: |
address@hidden |
Subject: |
Re: [gnulib-tool-py] func_warning |
Date: |
Fri, 13 Jul 2012 09:17:48 +0000 |
Hi Bruno,
I suggest to rename GLError to GLErrorHandler to raise Pythonic errors. GLError
now becomes a class, which can take there args in __init__:
1. errno: as in old GLError.
2. errinfo: as in old GLError.
3. fatal: True or False. Default is True. Non-fatal error means that this is
just a warning.
4. style: 0 or 1. 0 means old gnulib-tool style, 1 means that Pythonic error is
raised using GLErrorHandler. Default is 0.
If we add the last two arguments to GLMode class, we can easily switch
error-level and style of errors, e.g. users can use some parameter like -Werror
as you've written. That will be especially useful in the future, but will be
useful even now. What do you think?