class instance scope

Ritesh Raj Sarraf riteshsarraf at gmail.com
Mon Jul 24 07:53:08 EDT 2006


> > log = foo.log(x, y, z)
> >

Resulting line is:
log = foo.log(x, y, z)
global log

Making the instance "log" global makes it accessible to all the
functions.

Now I have only one question, Is this a correct way to do it ? Or are
there better way ?

Ritesh




More information about the Python-list mailing list