A question regd configobj

Srijayanth Sridhar srijayanth at gmail.com
Thu May 21 07:23:36 EDT 2009


Hello,

I am wondering if it is possible to have hexadecimal strings in a ini file
and have configobj parse it correctly.

for eg:
moonwolf at trantor:~/python/config$ cat foo
foo="\x96\x97"
.
.
.
>>> a=ConfigObj("foo")
>>> a
ConfigObj({'foo': '\\x96\\x97'})
>>> a['foo']
'\\x96\\x97'

As you can see the string has escaped the '\' and I want to suppress that
behavior. I've looked at the documentation and haven't been able to figure
out if this is an available feature or not.

Any help will be greatly appreciated.

Thank you,

Jayanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090521/56600443/attachment.html>


More information about the Python-list mailing list