Re: Beginner question? Classes, variables, ...

2006-06-28 Thread Ángel Gutiérrez Rodríguez
That wa sneat! Thanks! -- Ángel Gutiérrez Rodríguez - [EMAIL PROTECTED] Instituto de Ciencia de los Materiales de Madrid - CSIC SpLine - European Syncrothorn Radiation Facility - Grenoble - France Postal adress: Departamento de Química Física y Analítica Universidad de Oviedo - c/Julián Claverí

Re: Beginner question? Classes, variables, ...

2006-06-28 Thread Diez B. Roggisch
Dennis Lee Bieber wrote: > On Wed, 28 Jun 2006 10:35:10 +0200, "Diez B. Roggisch" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> class X: >> def __init__(self, my_y): >> self.my_y > self.my_y = my_y *argl* Thanks :) No tea so far... Diez -- http://mail.python.o

Re: Beginner question? Classes, variables, ...

2006-06-28 Thread Diez B. Roggisch
Ángel Gutiérrez Rodríguez wrote: > The problem: > > I have two classes: > > class X: > def __init__(self): > pass > > class Y: > def __init__(self): > self.a=1 > self.b=X() > > and I would like to make 'a' visible inside 'x'. Is there a way to refer > to the Y class from the X

Beginner question? Classes, variables, ...

2006-06-28 Thread Ángel Gutiérrez Rodríguez
The problem: I have two classes: class X: def __init__(self): pass class Y: def __init__(self): self.a=1 self.b=X() and I would like to make 'a' visible inside 'x'. Is there a way to refer to the Y class from the X? To make things easier :), each class is in a different file, s