[Zope] global variables in externa Methods

Elena Schulz elena.schulz@gmx.net
Fri, 13 Dec 2002 11:08:54 +0100


Hi Paul,

I want to pass many vars to some other functions of the same py-module than
that connected to the external method. If possible not as explicid args as
there are many and they dont' change while processing. Could be global
constants, too. By the way, is it possible to interrupt the processing of
external methods without shutting down the server?

-- many thanks for your replies, Elena

You wrote:

Stop right there... that's a syntax error in Python:
SyntaxError: name 'var1' is local and global

What are you really trying to do?
Why do you pass a parameter to myFuntionA and then
try to make the name of the parameter (which is
local to the function by definition) a global?

--PW