The Voidspace Techie Blog

Gravatar Most excellent! I'm hoping to move the TurboGears 1.1 branch to the trunk later this week, and I'm guessing I'll need to put ConfigObj in place there at the same time. Thanks!


Gravatar Is there any chance of having an additional interface to ConfigObj such that the following would be equivalent:

value = config['key1']['key2']['key3']

value = config.key1.key2.key3

Cheers.

AK


Gravatar Attribute access.

Because a ConfigObj instance has so many attributes, and all the Python reserved names can't be object attributes, I'm not keen on adding attribute access.

I think the mapping protocol is the right idiom for this because a named key accesses a member.


Name:

Email:

URL:

Comment:  ? 

 

Commenting by HaloScan