comparison tests/test_ini.txt @ 69:b9d9a94bfa19

override section now works
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 09 Jun 2011 09:36:08 -0700
parents f0f3525486db
children 20bdb8125817
comparison
equal deleted inserted replaced
68:65609d7ba63d 69:b9d9a94bfa19
46 True 46 True
47 >>> inifactory.config['foo']['kwargs']['app'] 47 >>> inifactory.config['foo']['kwargs']['app']
48 '%(fibonacci)s' 48 '%(fibonacci)s'
49 >>> [fib(i) for i in range(6)] 49 >>> [fib(i) for i in range(6)]
50 ['one', 'one', 'two', 'three', 5, 8] 50 ['one', 'one', 'two', 'three', 5, 8]
51
52 Override a section with additional arguments, [bar:fibonacci], n=5::
53
54 >>> bar = inifactory.load('bar')
55 >>> bar # [1,1,2,3,5,8][5]
56 8