fwd: member functions in a class

2008-09-18 Thread Karl Kobata
Gary, No the answer is not too short, thank you for your reply, I am learning rapidly. Terry, The expanded answer is also useful. Now I am getting a better insight on how python resolves object attributes. This also gives me more insight on the difference between import vs from from

Re: member functions in a class

2008-09-18 Thread Terry Reedy
Karl Kobata wrote: I am new to python and am wondering. When I create a class, with ‘def’ functions and if this class is instantiated say 50 times. Does this mean that all the ‘def’ functions code within the class is duplicated for each instance? Can someone give me a short and simple answe

Re: member functions in a class

2008-09-18 Thread Gary Herron
Karl Kobata wrote: I am new to python and am wondering. When I create a class, with ‘def’ functions and if this class is instantiated say 50 times. Does this mean that all the ‘def’ functions code within the class is duplicated for each instance? Can someone give me a short and simple answe

member functions in a class

2008-09-17 Thread Karl Kobata
I am new to python and am wondering. When I create a class, with 'def' functions and if this class is instantiated say 50 times. Does this mean that all the 'def' functions code within the class is duplicated for each instance? Can someone give me a short and simple answer as to what happens in