[issue5412] extend configparser to support mapping access(__*item__)

Ray.Allen report at bugs.python.org
Thu Jul 29 06:02:29 CEST 2010


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

> Note that the two versions are not exclusive: We can look for an item if a tuple is given and look for a section if it’s a string. Maybe confusing.

+1. I think this is a good idea. Getting a section and Getting a key-value are both very common operations when parsing "ini" config file. Both operations should be supported conveniently.

----------

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


More information about the Python-bugs-list mailing list