Re: Create attribute from string

2009-12-31 Thread Steve Holden
Chris Rebert wrote: On Wed, Dec 30, 2009 at 9:22 PM, AON LAZIO aonla...@gmail.com wrote: Hi, I would like to know how we could create attribute from string say I want to assign value 0.05 to an object attribute I like to input SIGNIFICANT and 0.05 and get object.SIGFICANT equals

Create attribute from string

2009-12-30 Thread AON LAZIO
Hi, I would like to know how we could create attribute from string say I want to assign value 0.05 to an object attribute I like to input SIGNIFICANT and 0.05 and get object.SIGFICANT equals to 0.05 Thanks -- Passion is my style -- http://mail.python.org/mailman/listinfo/python-list

Re: Create attribute from string

2009-12-30 Thread Chris Rebert
On Wed, Dec 30, 2009 at 9:22 PM, AON LAZIO aonla...@gmail.com wrote: Hi,     I would like to know how we could create attribute from string say I want to assign value 0.05 to an object attribute I like to input SIGNIFICANT and 0.05 and get object.SIGFICANT equals to 0.05 setattr(obj