◐ Shell
clean mode source ↗

Message 112617 - Python tracker

FTR, some people questioned the purpose of read_dict(). Let me summarize this very briefly here:

- the API is using dictionaries similar to those in defaults= but has one level of depth more (sections)
- initializing a parser with a dictionary produces syntax that is more natural in code
- having a single method implementing reading a dictionary with unit tests, support for proper duplicate handling, etc. frees users from writing their own
- we need that anyway for upcoming mapping protocol access discussed in #5412
- more detailed use cases in msg112429