Re: using attributes as defaults

2011-02-08 Thread Jean-Michel Pichavant
Westley Martínez wrote: On Fri, 2011-02-04 at 13:08 -0800, Wanderer wrote: I want to give the option of changing attributes in a method or using the current values of the attributes as the default. class MyClass(): """ my Class """ def __init__(self): """ initialize

Re: using attributes as defaults

2011-02-04 Thread Westley Martínez
On Fri, 2011-02-04 at 13:08 -0800, Wanderer wrote: > I want to give the option of changing attributes in a method or using > the current values of the attributes as the default. > > class MyClass(): > """ my Class > """ > def __init__(self): > """ initialize >

Re: using attributes as defaults

2011-02-04 Thread Peter Otten
Wanderer wrote: > I want to give the option of changing attributes in a method or using > the current values of the attributes as the default. > > class MyClass(): > """ my Class > """ > def __init__(self): > """ initialize > """ > self.a = 3 >

Re: using attributes as defaults

2011-02-04 Thread Emile van Sebille
On 2/4/2011 1:08 PM Wanderer said... I want to give the option of changing attributes in a method or using the current values of the attributes as the default. class MyClass(): """ my Class """ def __init__(self): """ initialize """ self.a = 3

Re: using attributes as defaults

2011-02-04 Thread Stephen Hansen
On 2/4/11 1:08 PM, Wanderer wrote: > I want to give the option of changing attributes in a method or using > the current values of the attributes as the default. > > class MyClass(): > """ my Class > """ > def __init__(self): > """ initialize > """ > s

using attributes as defaults

2011-02-04 Thread Wanderer
I want to give the option of changing attributes in a method or using the current values of the attributes as the default. class MyClass(): """ my Class """ def __init__(self): """ initialize """ self.a = 3 self.b = 4 def MyMethod(self,