why? __builtins__ key added from eval

Terry Reedy tjreedy at udel.edu
Thu Oct 2 21:46:31 EDT 2008


Lie Ryan wrote:
> On Tue, 30 Sep 2008 16:04:34 -0500, William Purcell wrote:

> You could remove the builtin if you don't think it is necessary for you. 
> Or you could do "dictionary comprehension" that collects only names you 
> require (actually use generator comprehension then do a dict() 
> conversion, dictionary comprehension was rejected some time ago)

3.0 has set and dict comprehensions.  I presume 2.6 does too.




More information about the Python-list mailing list