all() is slow?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue Nov 8 21:47:30 EST 2011


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



More information about the Python-list mailing list