RestrictedPython "globalization" change
Evan, 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. Did you have a deeper reason behind the change than the collector issue? If not, would you mind if we reverted, and updated the issue? Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
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
participants (2)
-
Evan Simpson -
Tres Seaver