Mercurial > hgrepos > Python > libs > ConfigMix
view tests/data/conf10.ini @ 494:60683361ebed
Test-script for checking the costs of different variable lookup methods
Variant from https://stackoverflow.com/questions/2714573/instance-variables-vs-class-variables-in-python
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Fri, 17 Dec 2021 19:24:54 +0100 |
| parents | 816327e178b0 |
| children | 88bfa76463a6 |
line wrap: on
line source
# -*- coding: utf-8 -*- [DEFAULT] replvalue1 = in the root namespace -- too [config] key1 = in the root namespace key2 = %(replvalue1)s [config.tree1] key3 = :int:0x20 [config.tree1.tree2] key4 = get this as `tree1.tree2.key4' key5 = :bool:TRUE key6 = off
