Re: why? __builtins__ key added from eval

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terry Reedy

    Re: why? __builtins__ key added from eval

    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.

Working...