Re: Access from class variable to one on constructor

2009-02-23 Thread Steven D'Aprano
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

Re: Access from class variable to one on constructor [Solved]

2009-02-23 Thread Kless
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()

Re: Access from class variable to one on constructor

2009-02-23 Thread Gabriel Genellina
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

Access from class variable to one on constructor

2009-02-23 Thread Kless
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