[Zope-dev] Re: RestrictedPython "globalization" change
Evan Simpson
evan at 4-am.com
Fri Jan 2 15:44:49 EST 2004
Tres Seaver wrote:
> I was just looking with Shane at the code you added in November to
> address http://collector.zope.org/Zope/445 . It seems to me that this
> bit of majyk is just confusing, and makes PythonScripts even less like
> "normal" Python functions; the actual submitter could easily fix his
> script by adding 'global context' at the top.
I completely disagree. Part of what already makes Scripts different
than "normal" functions is that they don't have an associated module and
globals. Bound variables are simply pre-initialized -- their current
"globalness" is an implementation detail that could change.
Cheers,
Evan @ 4-am
More information about the Zope-Dev
mailing list