Re: [Tutor] Methods defined in my class are affecting all the objects at runtime.

2011-10-29 Thread Brian Stovall
Thanks for all the wonderful help, everyone! On 10/29/11, Peter Otten <__pete...@web.de> wrote: > Brian Stovall wrote: > >> Hello world! >> >> I obviously don't understand something important and basic, but I am >> having trouble figuring it out myself... I am running python v3.2.2 on >> a Win XP

Re: [Tutor] Methods defined in my class are affecting all the objects at runtime.

2011-10-29 Thread Steven D'Aprano
Brian Stovall wrote: Hello world! I obviously don't understand something important and basic, but I am having trouble figuring it out myself... I am running python v3.2.2 on a Win XP machine. [...] I had been testing it with single objects favorably, but when I instantiate two Pile objects, me

Re: [Tutor] Methods defined in my class are affecting all the objects at runtime.

2011-10-29 Thread Peter Otten
Brian Stovall wrote: > Hello world! > > I obviously don't understand something important and basic, but I am > having trouble figuring it out myself... I am running python v3.2.2 on > a Win XP machine. > > My code: > > import card_model > import random > > class Pile: > """An Object repere

[Tutor] Methods defined in my class are affecting all the objects at runtime.

2011-10-29 Thread Brian Stovall
Hello world! I obviously don't understand something important and basic, but I am having trouble figuring it out myself... I am running python v3.2.2 on a Win XP machine. My code: import card_model import random class Pile: """An Object reperesenting a list of 'Card' Objects: could be a han