Re: Simple question about accessing instance properties.

2009-05-21 Thread Lacrima
On May 21, 7:04 pm, MRAB wrote: > Lacrima wrote: > > Hello! > > > I think I have a very simple question, but I can't understand how to > > access object properties in a way described below. > > For example I have an instance of any class: > > class Person: > >    def __init__(self): > >      

Re: Simple question about accessing instance properties.

2009-05-21 Thread MRAB
Lacrima wrote: Hello! I think I have a very simple question, but I can't understand how to access object properties in a way described below. For example I have an instance of any class: class Person: def __init__(self): self.name = 'John' self.email =

Simple question about accessing instance properties.

2009-05-21 Thread Lacrima
Hello! I think I have a very simple question, but I can't understand how to access object properties in a way described below. For example I have an instance of any class: >>> class Person: def __init__(self): self.name = 'John' self.email = 'j...@example.c