On 12 Apr., 16:29, Carl Banks <[EMAIL PROTECTED]> wrote:

> > And making an utf-8 encoding default is not possible without writing a
> > new function?
>
> I believe the Zen in effect here is, "In the face of ambiguity, refuse
> the temptation to guess."  How do you know if the bytes are utf-8
> encoded?

How many "encodings" would you define for a Rectangle constructor?

Making things infinitely configurable is very nice and shows that the
programmer has worked hard. Sometimes however it suffices to provide a
mandatory default and some supplementary conversion methods. This
still won't exhaust all possible cases but provides a reasonable
coverage.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to