In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > class Test: > a = 1 > b = 2 > c = 1+2 > > Now, all a,b and c would be directly visible to the user from the > instance of Test. I am looking for a way to make only c directly > visible from the instance.
Simplest way:
class Test:
c = 3
:-)
You know that `a`, `b` and `c` are class variables and not instance
variables!?
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list
