En Thu, 21 May 2009 08:23:36 -0300, Srijayanth Sridhar
escribió:
I am wondering if it is possible to have hexadecimal strings in a ini
file
and have configobj parse it correctly.
for eg:
moonw...@trantor:~/python/config$ cat foo
foo="\x96\x97"
.
.
.
a=ConfigObj("foo")
a
ConfigObj({'foo':
Srijayanth Sridhar wrote:
Hello,
I am wondering if it is possible to have hexadecimal strings in a ini file
and have configobj parse it correctly.
for eg:
moonw...@trantor:~/python/config$ cat foo
foo="\x96\x97"
.
.
.
a=ConfigObj("foo")
a
ConfigObj({'foo': '\\x96\\x97'})
a['fo
Hello,
I am wondering if it is possible to have hexadecimal strings in a ini file
and have configobj parse it correctly.
for eg:
moonw...@trantor:~/python/config$ cat foo
foo="\x96\x97"
.
.
.
>>> a=ConfigObj("foo")
>>> a
ConfigObj({'foo': '\\x96\\x97'})
>>> a['foo']
'\\x96\\x97'
As you can see t