On Apr 6, 5:56 pm, MRAB <goo...@mrabarnett.plus.com> wrote:

> In your example I would possibly suggest returning a 'Result' object and
> then later subclassing to give 'ConfidenceResult' which has the
> additional 'confidence' attribute.

That's indeed one option, but not very appealing if `Result` happens
to be a builtin (e.g. float or list). Technically you can subclass
builtins but I think, in this case at least, the cure is worse than
the disease.

George
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to