By the way... I've just implemented the ``stringify`` option in
ConfigObj 4 and committed.
It's on by default - values are converted to strings when written. If
you switch it off, type checking is done when you set values. (Only
strings or lists of strings).
At the moment the ``str`` function is used to convert values to
strings. For somethings (e.g. datetime instances) this *might* not be
suitable - we might need to special case.
Best Regards,
Fuzzy
http://www.voidspace.org.uk/python
|