[issue5412] extend configparser to support [] syntax

Ray.Allen report at bugs.python.org
Wed Jul 28 14:43:38 CEST 2010


Ray.Allen <ysj.ray at gmail.com> added the comment:

lukasz,

> - manipulation on the internal structures is much simpler when we have a single key like that. Having config['name'] return the section would make us create another proxy object just to support mutating keys in the section.

I'm afraid this could not be a good reason against the config['section']['key'] style. Since implementing this in python is not too difficult. For the more readability this style brings than config['section', 'key'], I think it's worthy.

----------
nosy: +ysj.ray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5412>
_______________________________________


More information about the Python-bugs-list mailing list