Re: Small prog question from a newbie: abt variables in a function definition

2006-11-29 Thread Gabriel Genellina
At Wednesday 29/11/2006 06:48, B Shyam Sundar wrote: I am a newbie as far as python is concerned ... I am trying to write a code for playing bridge in obj oriented manner .. Well ... i have this small problem: class hand: def __init__(self,set_of_cards=[]): self.set_of_cards=set_o

Small prog question from a newbie: abt variables in a function definition

2006-11-29 Thread B Shyam Sundar
Hi all, I am a newbie as far as python is concerned ... I am trying to write a code for playing bridge in obj oriented manner .. Well ... i have this small problem: class hand: def __init__(self,set_of_cards=[]): self.set_of_cards=set_of_cards card_played_flag =0 def play(played_