all() is slow?

Devin Jeanpierre jeanpierreda at gmail.com
Wed Nov 9 18:01:16 EST 2011


> If it were someone other than Raymond Hettinger responsible for the use
> of exec in namedtuple, I'd be a lot more suspicious of it.

I'm not going to be less suspicious based on a name. It reads like
insanity, and the justification was terrible.

Devin

On Tue, Nov 8, 2011 at 9:47 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> On Tue, 08 Nov 2011 19:44:18 -0500, Devin Jeanpierre wrote:
>
>> We have that stupid exec trick in the Python stdlib. It has to die.
>>
>> http://hg.python.org/cpython/file/6bf07db23445/Lib/collections/__init__.py#l240
>
>
> http://bugs.python.org/issue3974
> http://blog.ccpgames.com/kristjan/2011/05/28/namedtuple-and-exec/
>
> If it were someone other than Raymond Hettinger responsible for the use
> of exec in namedtuple, I'd be a lot more suspicious of it.
>
>
>
> --
> Steven
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list