Re: member variables in python
- From: "PyPK" <superprad@xxxxxxxxx>
- Date: 31 Mar 2006 08:08:11 -0800
ok I reason I was going with globals is that i use this variable in
another class something like this along with above
testflag = 0
class AA:
def __init__(...):
def methos(self,...):
global testflag
testflag = xx
class BB:
def __init__(...):
def method2(..):
if testflag:
print "do this"
is there a better way to access this if we go with what you mentioned
in another class ..
I wanted to avoid globals thats the reason i am looking for better
solution ..
.
- Follow-Ups:
- Re: member variables in python
- From: Kent Johnson
- Re: member variables in python
- From: bruno at modulix
- Re: member variables in python
- References:
- member variables in python
- From: PyPK
- Re: member variables in python
- From: Kent Johnson
- member variables in python
- Prev by Date: Re: How to debug python code?
- Next by Date: Re: How to debug python code?
- Previous by thread: Re: member variables in python
- Next by thread: Re: member variables in python
- Index(es):
Relevant Pages
|