Guido van Rossum writes:
> +
> + class GetoptError(Exception):
> + opt = ''
> + msg = ''
> + def __init__(self, *args):
> + self.args = args
> + if len(args) == 1:
> + self.msg = args[0]
> + elif len(args) == 2:
> + self.msg = args[0]
> + self.opt = args[1]
> +
> + def __str__(self):
> + return self.msg
>
> ! error = GetoptError # backward compatibility
This breaks as soon as the standard exceptions are strings; does
this mean -X will be removed in the next release? (Please????)
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
Corporation for National Research Initiatives
> +
> + class GetoptError(Exception):
> + opt = ''
> + msg = ''
> + def __init__(self, *args):
> + self.args = args
> + if len(args) == 1:
> + self.msg = args[0]
> + elif len(args) == 2:
> + self.msg = args[0]
> + self.opt = args[1]
> +
> + def __str__(self):
> + return self.msg
>
> ! error = GetoptError # backward compatibility
This breaks as soon as the standard exceptions are strings; does
this mean -X will be removed in the next release? (Please????)
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
Corporation for National Research Initiatives