[issue20943] configparser - add 'getDict' function

2014-03-16 Thread Łukasz Langa
Łukasz Langa added the comment: Michael, what you wish is already a part of configparser. Let's use this as an example: >>> p = configparser.ConfigParser() >>> p.read_string(""" ... [one] ... opt=val ... [two] ... num=1 ... str=bzz ... bool=true ... """) When asking for a specific section, you

[issue20943] configparser - add 'getDict' function

2014-03-16 Thread R. David Murray
R. David Murray added the comment: How is this different from myconfig['section']? -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue20943] configparser - add 'getDict' function

2014-03-16 Thread Michael Müller
New submission from Michael Müller: It would be nice to have a 'getDict' function in the configparser lib. Adding that function would be simply def getDict(self, *args): return dict([entry for entry in self.items(*args)]) inside the RawConfigParser class next to the other get* function