Christoph Haas wrote:
> As I know that importing packages from multiple modules always keeps it a
> singleton I thought of something like this:
> 
> Util.py:
> ~~~~~~~~
> debugFlag = False
> vibranceLevel = 'good'
> 
> def function1():
>    global debugFlag
>    print debugFlag

The global line is not needed: global declarations are only required
if you need to _write_ on globals w/in the function.

--Scott David Daniels
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to