You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
While looking through configparser and how this could be implemented I'm noticing how crappy the configparser library really is.
ConfigParser doesn't handle:
Nested dictionaries (treated as strings)
Lists (treated as strings)
Proper typing (everything is considered to be a string)
I'm unsure if this is part of the ini spec but it's pretty damn bad.
So any kind of serialization and loading methods using ConfigParser will need to have custom logic for writing the content in a restoreable manner.
Solution to dealing with this is just to create a custom ConfigParser class which deals with the serialization and de-serialization of the parser instance.
Expected Behavior
I want to also add support for dumping to and loading from
.ini
files.Should add a
dumps_ini
andloads_ini
methods.Current Behavior
There is no support 😞
Possible Solution
Most likely I can just use configparser.
Particularly the
read_dict
method will be helpful.❤️ Thank you!
The text was updated successfully, but these errors were encountered: