2 Jan
2004
2 Jan
'04
8:44 p.m.
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