Re: [rfc] An object that creates (nested) attributes automatically on assignment

2009-04-10 Thread Steven D'Aprano
On Fri, 10 Apr 2009 19:04:38 -0700, Edd wrote: > Hi folks, > > I'd like to use Python itself as the configuration language for my > Python application. I'd like the user to be able to write something like > this in their config file(s): > >cfg.laser.on = True >cfg.laser.colour = 'blue' >

[rfc] An object that creates (nested) attributes automatically on assignment

2009-04-10 Thread Edd
Hi folks, I'd like to use Python itself as the configuration language for my Python application. I'd like the user to be able to write something like this in their config file(s): cfg.laser.on = True cfg.laser.colour = 'blue' cfg.discombobulated.vegetables = ['carrots', 'broccoli'] #