sharing vars with different functions

scripteaze at gmail.com scripteaze at gmail.com
Mon Oct 29 05:03:14 EDT 2007


Im tryin to call a var thats sitting in a function, example:

class someclass(object):
         somevar = open(blah, 'r').readlines()


def something():

        for line in somevar:
             print line
-----------------------------------------------------------------------

i  guess im not graspng the whole global or local var topic..

Any examples??




More information about the Python-list mailing list