[issue21329] configparser can't parse MySQL style config
R. David Murray
report at bugs.python.org
Tue May 13 18:34:33 CEST 2014
R. David Murray added the comment:
The data structure you are asking for bears a resemblance to the data structure used by the email package to record message headers. Email uses a list with a dict-like API cobbled together on top. The difference with your suggestion is that email also needs to record the order of the headers, so just having a list-of-values for each key isn't adequate. Any bets on whether or not we eventually run across a use of .ini format where the exact order of the duplicated keys within the whole list of keys matters? :)
With two use cases that could be served by the same data structure in the stdlib, I wonder if it is worth actually building the abstract data type. Probably not, but I thought I'd raise the possibility anyway :)
----------
nosy: +r.david.murray
type: -> enhancement
versions: +Python 3.5 -Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21329>
_______________________________________
More information about the Python-bugs-list
mailing list