Mercurial > hg > pyloader
comparison tests/test_ini.txt @ 75:20bdb8125817
inline wrapper arguments now seem to work....thats....uncanny
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 09 Jun 2011 18:31:13 -0700 |
parents | b9d9a94bfa19 |
children | 1339185cbd2d |
comparison
equal
deleted
inserted
replaced
74:1f76705df520 | 75:20bdb8125817 |
---|---|
52 Override a section with additional arguments, [bar:fibonacci], n=5:: | 52 Override a section with additional arguments, [bar:fibonacci], n=5:: |
53 | 53 |
54 >>> bar = inifactory.load('bar') | 54 >>> bar = inifactory.load('bar') |
55 >>> bar # [1,1,2,3,5,8][5] | 55 >>> bar # [1,1,2,3,5,8][5] |
56 8 | 56 8 |
57 | |
58 Test inline wrapper arguments, [extended-fibonacci:@:four=4,five=5:fibonacci]:: | |
59 | |
60 >>> extended = inifactory.load('extended-fibonacci') | |
61 >>> [extended(i) for i in range(6)] | |
62 ['one', 'one', 'two', 'three', 'five', 8] |