help on object programing

yadin conra2004 at yahoo.com
Fri Aug 17 19:07:09 CEST 2007


class big(self):

    x = 32
    list = []
    def inside (self):

        class small(self): # a new class defined inside the first

            y = 348
            list.append(y) # send the value to first list
            list.append(x)

print list

how can i define my variables so that there are valid outside the
class???




More information about the Python-list mailing list