In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
><[EMAIL PROTECTED]> wrote:
>
>> Thanks. :-) Two remarks.
>> o One-liner fits the eyes & brains of a portion of people.
>
>True!  So, personally, I'd rather code, e.g.,
>
>def bools(lst): return map(bool, lst)
>
>rather than breal this one-liner into two lines at the colon, as per
>standard Python style.  However, uniformity has its advantages, too; I'm
>ready for the one-liner style to be outlawed in Python 3.0, purely in
>the advantage of uniformity.
>
>Note that lambda is utterly useless here, be it for one-liners or not.
                        .
                        .
                        .
Please say that last sentence another way.  I *think* you mean
that to define (def) a non-pathologic named function, lambda
provides no advantage; one sacrifices no expressivity by a
restriction to def-s.  Is that right?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to