Re: how to access data attributes of a class object

2010-06-04 Thread namrata
Thanks a lot Peter. It works. On Jun 4, 12:26 pm, Peter Otten <__pete...@web.de> wrote: > namrata wrote: > > I am creating an instance of a class. for example let the class be > > Temp and the attributes of the class be first_name and last_name. > > in order to access the attributes i will usually

Re: how to access data attributes of a class object

2010-06-04 Thread Peter Otten
namrata wrote: > I am creating an instance of a class. for example let the class be > Temp and the attributes of the class be first_name and last_name. > in order to access the attributes i will usually use the following > command: > a = Temp() > a.last_name = "***" > > now, i am using sqlalc

how to access data attributes of a class object

2010-06-04 Thread namrata
Hi, i am new to python and sqlalchemy. so my doubt mite be very silly. I am creating an instance of a class. for example let the class be Temp and the attributes of the class be first_name and last_name. in order to access the attributes i will usually use the following command: a = Temp() a.last