OOP in Python

Jonas Bengtsson jonas.b at home.se
Wed Jun 20 13:54:50 EDT 2001


Ok I admit - I am a Python-newbie!

What about local variables and class variables when dealing with
classes?
With local vars I mean temporaryly used variables in a function. Will
they be treated as 'normal' instance attributes? Do I have to delete
them by myself when I'm leaving a function?
With class vars I mean if many class instances of a class may share a
variable. In C++ this is accomplished by a static variable. How do I
do in Python?

Thanks in advance,
Jonas B



More information about the Python-list mailing list