[EMAIL PROTECTED] wrote:

> class A:
>          _var1 = 0
>          def __init__(self):
>                  ## some initialization
>                  self.func1()
> 
>          def func1():
>                   .....
>                  _var1 = 1
>                  ....

You mean::

        class A:
            _var1 = 0

            ...

            def func1(self):
                A._var1 = 1

All you're doing in your example is setting a local variable inside the 
func1 method, which has no effect.

-- 
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   Every path has its puddle.
    -- (an English proverb)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to