member variables in python

PyPK superprad at
Fri Mar 31 18:30:56 CEST 2006

I see that.But here in my case the testflags is computed inside the
member function something like

class AA:

        def __init__(self):
            self.test_flag = 0 # initialize

        def methods(self, value):
            save_value = _munge(value)
            self.test_flag = save_value

Now basically I want use this self.test_flag in another class ..
Basically I wanted to know if there is a better way than what i did
before..not necessarly a member variable way ..just looking for a more
eligant way if there is any..

More information about the Python-list mailing list