Re: member variables in python
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: member variables in python

From: PyPK <superprad@gmail.com>
Date: Fri Mar 31 2006 - 18:30:56 CEST

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..
Received on Sun Apr 30 21:47:55 2006