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

member variables in python

From: PyPK <superprad@gmail.com>
Date: Fri Mar 31 2006 - 17:33:10 CEST

hi how do I write this better with member variables rather than global
as you see below.

eg:

test-flag = 0

class AA:
   def __init__(...):

  def methos(self,...):
       global test-flag
       test-flag = xx

instead of something like above ..how do i put it i terms of member
variables?
Received on Sun Apr 30 21:47:18 2006