[Python-ideas] Fast sum() for non-numbers - why so much worries?

Joshua Landau joshua at landau.ws
Fri Jul 12 23:40:13 CEST 2013


On 12 July 2013 22:33, David Mertz <mertz at gnosis.cx> wrote:

> Even though we have TOOWTDI, in reality there are lots of Python
> constructs that one *can* do, but really just *shouldn't*.  Using sum() on
> sequences feels about like ._getframe() hacks or slightly perverse
> generator comprehensions on can write (e.g. for side-effects).  We're all
> adults, and we're not going to stop you (unless we do so with
> DeprecationWarning), but it's just not the *right* thing to do.
>

Really? As bad as a frame-hack?

I'm not arguing, just surprised.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130712/59125e13/attachment.html>


More information about the Python-ideas mailing list