On Mon, 23 Feb 2009 08:02:17 -0200, Gabriel Genellina wrote:
> En Mon, 23 Feb 2009 07:40:47 -0200, Kless
> escribió:
>
>> How to access from a class variable to one that is initialized on the
>> constructor?
>> --
>> class Foo():
>> foo = bar # I want to access *from here* to vari
Thanks Gabriel. You have reason, and I was having a design error.
On 23 feb, 10:02, "Gabriel Genellina" wrote:
> En Mon, 23 Feb 2009 07:40:47 -0200, Kless
> escribió:
>
> > How to access from a class variable to one that is initialized on the
> > constructor?
> > --
> > class Foo()
En Mon, 23 Feb 2009 07:40:47 -0200, Kless
escribió:
How to access from a class variable to one that is initialized on the
constructor?
--
class Foo():
foo = bar # I want to access *from here* to variables created on
the constructor.
def __init__(self, bar_init):
self.bar
How to access from a class variable to one that is initialized on the
constructor?
--
class Foo():
foo = bar # I want to access *from here* to variables created on
the constructor.
def __init__(self, bar_init):
self.bar = bar_init
--
Note: I've to create a subclas