global variable problem
Kiss, Arpad
AKiss at GEOMETRIA.hu
Mon Jan 24 13:07:22 EST 2000
volumeregeling <volumeregeling at hotmail.com> wrote in message
news:<388c496a.9657176 at 122.0.0.250>...
> Hi,
>
>
> I am writing a program without classes.
>
> I have the following :
>
> Debugging = 0
>
> def remote_debug():
> Debugging = 1
Try this:
def remote_debug():
global Debugging
Debugging = 1
Arpad
>
>
>
> For some reasong the Debuggine in the function is not the same as the
> global one , can you tell me how i can update the global variable from
> within a function ????
> so i would like to update the global one when i am in the function and
> not create a second Debugging which disapears when the functions dies.
>
>
> thakns,
>
> Volumeregeling.
> --
> http://www.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list