Re: [Tutor] Problem appending to a list using a property within a class

2005-11-09 Thread Kent Johnson
John Fouhy wrote: > On 09/11/05, Roy Bleasdale <[EMAIL PROTECTED]> wrote: > >>I have created a List within a class. If I try and append to the list using >>the set function using the property value my variable stops being a list. > > Properties only work properly with new style classes. You get

Re: [Tutor] Problem appending to a list using a property within a class

2005-11-08 Thread John Fouhy
On 09/11/05, Roy Bleasdale <[EMAIL PROTECTED]> wrote: > I have created a List within a class. If I try and append to the list using > the set function using the property value my variable stops being a list. > > Can anyone explain why the set function called by the class property does > not append

[Tutor] Problem appending to a list using a property within a class

2005-11-08 Thread Roy Bleasdale
I have created a List within a class. If I try and append to the list using the set function using the property value my variable stops being a list. Can anyone explain why the set function called by the class property does not append to the list? Here is some sample code: class ShoppingBag: