configobj validation
Andrea Crotti
andrea.crotti.0 at gmail.com
Mon Mar 19 08:59:43 EDT 2012
I seemed to remember that type validation and type conversion worked out
of the box, but now
I can't get it working anymore.
Shouldn't this simple example actually fail the parsing (instead it
parses perfectly port to a string)?
sample.py:
from configobj import ConfigObj
conf = ConfigObj('sample.conf', configspec='sample.spec')
sample.conf:
port = some_string
sample.spec:
port = integer(0, 10)
PS. using configobj 4.7.2
More information about the Python-list
mailing list