Module ini
source code
Access and/or modify INI files
* Compatiable with ConfigParser * Preserves order of sections &
options * Preserves comments/blank lines/etc * More convenient access to
data
Example:
>>> from StringIO import StringIO
>>> sio = StringIO('''# configure foo-application
... [foo]
... bar1 = qualia
... bar2 = 1977
... [foo-ext]
... special = 1''')
>>> cfg = INIConfig(sio)
>>> print cfg.foo.bar1
qualia
>>> print cfg['foo-ext'].special
1
>>> cfg.foo.newopt = 'hi!'
>>> print cfg
# configure foo-application
[foo]
bar1 = qualia
bar2 = 1977
newopt = hi!
[foo-ext]
special = 1
|
_make_xform_property(myattrname,
srcattrname=None) |
source code
|
|
|
|
|
readline_iterator(f)
iterate over a file by only using the file object's readline method |
source code
|
|
|
__package__ = ' translate.misc '
|
|
__warningregistry__ = { ( ' the sets module is deprecated ' , <type...
|
Imports:
re,
Set,
config,
DEFAULTSECT,
ParsingError,
MissingSectionHeaderError
__warningregistry__
- Value:
{ ( ' the sets module is deprecated ' ,
<type 'exceptions.DeprecationWarning'>,
45) : True}
|
|