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
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
>
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
>
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
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
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,