Open GoogleCodeExporter opened 9 years ago
I can reproduce it. (python 2.7)
ConfigParser.SafeConfigParser will return None
and iniparse will return 'None'
But it is a little tricky because you can't write a None type to an ini file
and get it back as a None type. So the your can get a None value in a default
dict, but not from reading from a real ini file. So you can discuss if it a bug
in ConfigParser to able to set a default value, that is a differnt type that
the one you can read from an ini file (string, int & boolean)
Put anyway if iniparse should be compatible with Configparser, then it should
act in the same way :)
Original comment by tim.lauridsen
on 6 Jan 2011 at 7:45
iniparse has specific support for this behavior when non-string values are
assigned to attributes (as far as I can remember). We should be able to get
this to work with defaults as well.
Original comment by psobe...@gmail.com
on 17 Jun 2012 at 1:14
Original issue reported on code.google.com by
alik...@gmail.com
on 4 Jan 2011 at 9:17